Help! can't use array_unique
Posted: Sat Mar 10, 2007 12:33 am
Here is the a problem i have a database in the table links there is a row 'name' this row contais a several names but some of them are similar i want to show this row results without repeating i do like this
but i don't know how to use 'array_unique ' to diable repeating
Code: Select all
$con=mysql_connect("localhost","","");
mysql_select_db("db",$con);
$query=("select * from links ");
$result=mysql_query($query);
while ($row=mysql_fetch_assoc($result)){
echo $row[name]."<br>" ;
}