dropbox not populating
Posted: Mon Jul 04, 2011 11:12 am
plz help...the code below doesn't populate the dropbox with the records
Code: Select all
<?
// Initializes a list of acceptable category
$category_list = array();
$query_category = " SELECT categorylist.categoryname from categorylist ";
$result_category = mysql_query($query_category);
confirm_query($result_category);
$category_list[]=" ";
while ($record = mysql_fetch_assoc($result_category)) {
$category_list[] = $record['categoryname'] ;
echo '<option>'.['categoryname'].'</option>';
}
$category = $_GET['categoryname'];
?>