Search found 2 matches
- Wed Mar 10, 2004 2:51 pm
- Forum: Databases
- Topic: removing duplicate values from a mysql_fetch_array
- Replies: 1
- Views: 314
I have found the answer
$query = "select distinct building from readers2";
- Wed Mar 10, 2004 2:35 pm
- Forum: Databases
- Topic: removing duplicate values from a mysql_fetch_array
- Replies: 1
- Views: 314
removing duplicate values from a mysql_fetch_array
I am fetching a field from a MySQL table, storing it in an arrray and then putting that array into a drop down menu with a for loop. The problem is that I am getting duplicate values. I tried using array_unique to remove the duplicate values and it didn't work. Maybe I'm not using it correctly. Here...