Re: Selected Value!
| From: | Anthony Judd | Date: | Sun, 02 Feb 2003 07:04:06 +0000 |
| Subject: | Re: Selected Value! | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-18295@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]);
}
}
}