I am trying to pull data from a database into a listbox...
I am not getting any output inside the listbox!?
$query = "SELECT * FROM categories WHERE Parent = 'NULL'";
?><SELECT name="categories" size="20" multiple>
<?php
if (($result = @ mysql_query ($query, $connection))){
while ($category = mysql_fetch_array($result)){
?>
<option name="<?php echo $category['ID']; ?>"><?php echo $category['Name']; ?></option>
<?php
}
}
else
showerror();
?>
</select>
Can anyone tell me y?
thank-you!