Page 1 of 1

Ok I need some help

Posted: Mon Dec 05, 2011 10:28 am
by shaints11
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?

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'];

Re: Ok I need some help

Posted: Mon Dec 05, 2011 12:26 pm
by Chris
Have you set up the database?

Re: Ok I need some help

Posted: Mon Dec 05, 2011 12:48 pm
by shaints11
Yes, I have followed all instructions from the tutorials including the data base. if any one as skype or MSN, this'll greatly help me so we can do chit chat over that or through team viewer and I can show ya folks what is exactly happening

Re: Ok I need some help

Posted: Tue Dec 06, 2011 5:47 pm
by hallsofvallhalla
what error are you getting or are you just getting a blank page.

you can add me to msn, goblinswarf@hotmail.com, not sure if I will have much time though but will try. I am often on but not at that computer or in a meeting or something.