I want to make a pull down menu created from my database. I have got some code and it works but for some reason it does not give me all of the data. Here is the code
function wars_leagues()
{
global $mpnTables;
$result = mysql_query( "Select * FROM ".$mpnTables['war_leagues'] );
$num_rows = mysql_num_rows( $result);
while ( $a_row = mysql_fetch_row( $result ) ){
print "<option value=\"$a_row[0]\"";
print ">$a_row[1]\n";
}
}
In this field I have 3 items in the row war_leagues but it only shows up 2. If I add another in then shows 3 and not 4 ?? I hope you understand and can help
Thanks :-)