[PHP-WIN] Re: Selected Value!

2003-02-02 Thread Bobo Wieland
Do you get a selection at all? A select-tag should, in xhtml (that i think everyone should use), look like this: First object Second Object ... n Object I usually use mysql_fetch_object like this: \n"); while ($fp_kat = mysql_fetch_object($result)) { if ($fp_kat->kat_id ==

[PHP-WIN] Re: Selected Value!

2003-02-01 Thread Anthony Judd
i have also tried: function retrieve_category() { $cat = mysql_query("SELECT category_id FROM category"); while ($current_row = mysql_fetch_row($cat)) { $row = $current_row[0]; //changed here if ($row == $id) { printf("%s\n",$current_row[0]); }