I'm trying to write a program that lets a gamer pre-register (addplayer.php) for a LAN party, then display the people who have registered (viewplayer.php) in a drop down menu list, the addplayer.php works fine, but I can't seem to get the query to select and display the info to work, maybe you guys can help, here's the code.
html>
head>
title>/title>
/head>body>
select name="player_list">
?php
$db = mysql_connect("localhost", "******", "wayne224");
$Query = mysql_query("SELECT player_name FROM bawm_players", $db);
$NumRows = mysql_num_rows($Query);
while ($Count < $NumRows)
{
$Display = mysql_fetch_array($Query, MYSQL_ASSOC);
echo "option value='" . $Display['id'] . "'>" . $Display['player_name'] . "/option>";
}
?>
/select>
/body>
/html>
www.bawmlan.com/phpplayground/playerscript/addplayer.php
www.bawmlan.com/phpplayground/playerscript/viewplayer.php
please help, thanks.
oh yeah and if you view source on viewplayer.php it has 2 errors, i'm sorry i've only been programming in php for a week so i'm still kind of new