Re: Database value as selected in combo box!

From: Date: Sun, 02 Feb 2003 07:03:36 +0000
Subject: Re: Database value as selected in combo box!
References: 1  Groups: php.lang 
Request: Send a blank email to php-lang+get-454@lists.php.net to get a copy of this message
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("<option selected>%s</option>\n",$current_row[0]); } else { printf("<option>%s</option>\n",$current_row[0]); } } } >

« previous php.lang (#454) next »