$sql="SELECT id , name , count(id) as ct FROM make WHere GROUP BY id , name";
$result=mysql_query($sql);
while($res=mysql_fetch_array($result))
{
$t1 =$res['id'];
$t2 =$res['name'];
$t3= $res['ct'];
$strSQL = mysql_query("SELECT id , name , number_2 from re_make Where id='$t1'");
$res = mysql_fetch_array($strSQL);
$t4=$res[0];
if($t4==0){
$sql="INSERT INTO re_make (id,name,number_2) VALUES ('$t1','$t2','$t3')";
mysql_query($sql);
}
}