Thank you tomhath.
Actually i did not knew how to fetch unique data.DISTINCT help me a lot of because i solv my proble with a long prosses.
First i make an array:
$test=array();
Than fetch all result and chack with function in_array.
while($row=mysql_fetch_array($resust)){
$ttp=$row['name'];
if(!in_array($ttp,$test)){
$test[]=$ttp;
}
}
Than i insert with foreach ...
foreach($test as $ins){
$sql2=mysql_query("INSERT INTO ... ... ...");
}
ha....ha....i am really a Cow....THANK you...Now just use DISTINCT.
Thank you both for help me...