Re: [PHP] Print array items only once

2001-05-09 Thread sean
row only once. > > example "SELECT DISTINCT cat_id, cat_name FROM categories" > > Regards, > > Nicolas > > -Message d'origine- > De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > Envoyé : mercredi 9 mai 2001 12:02 > À : [EMAIL PROTECTED] >

RE: [PHP] Print array items only once

2001-05-09 Thread Nicolas Guilhot
TED]] Envoyé : mercredi 9 mai 2001 12:02 À : [EMAIL PROTECTED] Objet : [PHP] Print array items only once Hi all, I am querying the categories field in my database to rurn the various categories that can be clicked on. Problem is, if I have 5 items in a category, my categories query lists the catego

[PHP] Print array items only once

2001-05-09 Thread sean
Hi all, I am querying the categories field in my database to rurn the various categories that can be clicked on. Problem is, if I have 5 items in a category, my categories query lists the category 5 times.. I am trying to work out how to say: while($qry = mysql_fetch_array($res)){ print $res["