Ok I need some help
Posted: Mon Dec 05, 2011 10:28 am
I don't know where I went wrong, but I'm a beginner in coding, so I have been following the tutorials and currently on #3, but I found a problem with the WAMP, or text/code w/e lol, in #2 you should get player Id and Email but I didn't get either, and I looked at my coding and it was exactly the same as Halls is.
Might some one be some assistance of helping me?
Might some one be some assistance of helping me?
Code: Select all
<?php
include 'connect.php';
$playerinfo ="select * from players where name = 'player1'";
$playerinfo2 = mysql_query($playerinfo) or die ("could not select players");
$playerinfo3 = mysql_fetch_array($playerinfo2);
echo "Player1's email is " . $playerinfo3['email'];
echo "<br>Player1's id is " . $playerinfo3['id'];