Jump to content

[SOLVED] Drop Down not getting data.


daveoffy

Recommended Posts

The menu is not being filled up. Please help. I don't get any errors.

 

<form method="POST" enctype="multipart/form-data" name="image_upload_form" action="">
<p>Season Name: <input name="name" type="text" class="textfield" id="name"></p>
<p>Show Name: <SELECT NAME="show">
<?php
$q = "SELECT * FROM `season` ORDER BY name ASC";
$r = mysql_query($q);
while($column = mysql_fetch_assoc($r)){
	$id = $column['id'];
	$showtitle = $column['name'];
	echo '<OPTION VALUE="'.$id.'">'.$showtitle.'</option>';
	}
?>
</SELECT>
<p>Image: <input type="file" name="image" size="20"></p>
<p><input type="Submit" value="Add Show" name="Submit"></p>
</form>

Link to comment
https://forums.phpfreaks.com/topic/165955-solved-drop-down-not-getting-data/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.