Forum Moderators: open
BOY
BOY
GIRL
GIRL
XEON
The problem is that I want it to ignore the repeats, therefore giving me this:
BOY
GIRL
XEON
I am using the following php code to pull them all:
<?
$query="SELECT * FROM product WHERE status='show' ORDER BY cat ASC LIMIT 0,1";
$result=mysql_query($query);
$num=mysql_numrows($result);
mysql_close();
$i=0;
while ($i < $num) {
$cat=mysql_result($result,$i,"cat");
echo "$cat <BR><BR>";
$i++;
}
?>
Any help or ideas would be great, I hope I am clear on the problem I am having.