Here is what I have so far -
<!-- SQL Populated Drop Down -->
<form method="post" action="showleague.php">
<?php
error_reporting(E_ALL);
//Connect & Select.
$con = mysql_connect("localhost","jsoftwa1","P8RU7M!A");
if (!$con)
{
die('Could not connect: ' . mysql_error());
}
mysql_select_db("jsoftwa1_LeagueSQL", $con);
$result = mysql_query("SELECT LeagueName FROM League_Index");
while ($data=mysql_fetch_assoc($result)){
?>
<span class="search">Select a league:</span>
<select name="leagueName">
<option value ="<?php echo $data['LeagueName'] ?>" ></option>
<?php } ?>
</select> <input type="submit" value="view" class="button" />
</form>
The page works ok but nothing shows up in the dropdown box.
EDIT: Forgot to add the code in between the option braces too.