How do I populate a select list with a list of category names from a DB?
I can select the names using a query but how do I loop through them to
display them in a select?

My query below will return the cat names. (when I  do something with it
like echoing the result)

$mysql = mysql_query("SELECT catname FROM categories ORDER BY catid");

But I want to give each catname in the DB a unique name in a form select
and don't know how to go about it.
Tutorials or tips anyone?
Regards,

Steve Jackson
Web Developer
Viola Systems Ltd.
http://www.violasystems.com
[EMAIL PROTECTED]
Mobile +358 50 343 5159


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to