Ok I need some help

Place for questions and answers for all newcomers and new coders. This is a free for all forum, no question is too stupid and to noob.
Post Reply
shaints11
Posts: 10
Joined: Mon Dec 05, 2011 5:32 am

Ok I need some help

Post 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'];
User avatar
Chris
Posts: 1581
Joined: Wed Sep 30, 2009 7:22 pm

Re: Ok I need some help

Post by Chris »

Have you set up the database?
Fighting for peace is declaring war on war. If you want peace be peaceful.
shaints11
Posts: 10
Joined: Mon Dec 05, 2011 5:32 am

Re: Ok I need some help

Post 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
User avatar
hallsofvallhalla
Site Admin
Posts: 12026
Joined: Wed Apr 22, 2009 11:29 pm

Re: Ok I need some help

Post 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.
Post Reply

Return to “Beginner Help and Support”