php-db | 2002122
Date: 12/19/02
- Next message: Snijders, Mark: "RE: [PHP-DB] Passing selection to next page"
- Previous message: mike karthauser: "Re: [PHP-DB] keyword search a mysql database."
- Next in thread: Snijders, Mark: "RE: [PHP-DB] Passing selection to next page"
- Maybe reply: Snijders, Mark: "RE: [PHP-DB] Passing selection to next page"
- Reply: xxx xxxx: "Re: [PHP-DB] Passing selection to next page"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
I have a drop down list created using the following code and am having
trouble passing my selection to the next page. Can anyone help?
<?
$query = "select distinct department from courses order by department";
$result = mysql_query($query);
echo "<SELECT ID='Category Combo Box' NAME='department'>";
echo "<OPTION VALUE=' ' SELECTED>Select Department</OPTION>";
While ($row = mysql_fetch_assoc($result))
{
echo "<OPTION VALUE='";
echo stripslashes($row["department"]);
echo "'> ";
echo stripslashes($row["department"]);
echo "</OPTION>";
}
echo "</SELECT>";
mysql_free_result($result);
?>
-- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
- Next message: Snijders, Mark: "RE: [PHP-DB] Passing selection to next page"
- Previous message: mike karthauser: "Re: [PHP-DB] keyword search a mysql database."
- Next in thread: Snijders, Mark: "RE: [PHP-DB] Passing selection to next page"
- Maybe reply: Snijders, Mark: "RE: [PHP-DB] Passing selection to next page"
- Reply: xxx xxxx: "Re: [PHP-DB] Passing selection to next page"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

