this is not returning me unique valuesPHP Code:do{
//EDIT HERE and specify your field name that is primary key
$adid_array[] = $row['username'];
}while( $row= mysql_fetch_array($numresults));
} //end foreach
if($row_num_links_main == 0 && $row_set_num == 0){
$resultmsg = "<p>You searched for:" . $trimmed ."</p><p>No results found!</p>" ;
}
//delete duplicate record id's from the array. To do this we will use array_unique function
$tmparr = array_unique($adid_array);
$i=0;
foreach ($tmparr as $v) {
$newarr[$i] = $v;
$i++;
}
plz help






Bookmarks