I wish to count and capture the value of UNIQUE entries in a field.
For example:
TABLE(GALLERY) has a field called CATEGORY.
What I have is this:
$result = mysql_query("SELECT CATEGORY FROM GALLERY");
$numrows ($result);
for($i=0;$i<$numrows;$i++){
$category[$i] = mysql_result($result,$i,'CATEGORY');
}
now I have an array that holds every Category entry.
What I want is to remove ALL DUPLICATE entries, so if I only have 7 different Category names, I'm left with only 7 elements in my Array
tips anyone?
Cakk