Hi,
I am returning rows from a SQL query with a
do {
echo $row_rsAnimals['animals'];
} while ($row_rsAnimals = mysql_fetch_assoc($rsAnimals));
this loop can then echo out each returned row and display the results.
What i want to do is to be able to echo out only unique values from the animal field
I figured i would need to combine each result into an array and then use array_unique to remove duplicates.
If someone could show me how to create the array in the loop to get me started, that would appreciated, still not got my head around arrays
Cheers