I'm having a problem.I have a page with a drop down list but i want the options to be generated from a database.
The code I have at the moment is:
include('../generic/connect.php');
$Link=mysql_connect($Host, $User, $Password);
$Query = "SELECT * FROM photo_album";
$Result=mysql_db_query ($DBName, $Query, $Link);
while ($Row = mysql_fetch_array ($Result)){
print("<select name=\"albums\">");
print("<option value=\"$Row[album_name]\">$Row[album_name]</option>");
}
mysql_close ($Link);
print("</select>");
This shows the list but their are no options. Can anyone see where I'm going wrong and advise me please.