Page 1 of 1
Browser base game help
Posted: Mon Oct 21, 2013 10:49 pm
by zannza95
<?php
include 'connect.php';
echo "text"
$piayerinfo = "select * from players where name = 'player1'";
$playerinfo2 = mysql_query($playerinfo) or die ("Could not select players");
$playerinfo3 = mysql_fetch_arrray($playerinfo2);
echo "Player1's email is". $playerinfo3['email'];
?>
heres my code
and im getting and error at ever line of $var and nothing is being put out to the screen, ive allrdy got the connect.php working.
Re: Browser base game help
Posted: Mon Oct 21, 2013 10:50 pm
by Epiales
zannza95 wrote:<?php
include 'connect.php';
echo "text"
$piayerinfo = "select * from players where name = 'player1'";
$playerinfo2 = mysql_query($playerinfo) or die ("Could not select players");
$playerinfo3 = mysql_fetch_arrray($playerinfo2);
echo "Player1's email is". $playerinfo3['email'];
?>
heres my code
and im getting and error at ever line of $var and nothing is being put out to the screen, ive allrdy got the connect.php working.
try echo "text";
Maybe?
Re: Browser base game help
Posted: Mon Oct 21, 2013 10:54 pm
by zannza95
here is the
http://www.christstruebride.com/worldof ... trance.php php file that is being used, i deleted it and still nothing is being posted, how would i use a die statement if there isn't finding a player1
Re: Browser base game help
Posted: Mon Oct 21, 2013 10:59 pm
by Epiales
I'm still new to much of this, but you can echo playerinfo:
and see what that gives you.
Might be able to debug this way...
Code: Select all
$piayerinfo = "SELECT * FROM 'players'";
$result = mysql_query($playerinfo ) or trigger_error(mysql_error()." ".$piayerinfo );
I don't know a lot, but things that I"ve had to do before... Might help ya
Re: Browser base game help
Posted: Mon Oct 21, 2013 11:00 pm
by Epiales
Okay, change this:
$piayerinfo = "select * from players where name = 'player1'";
To this:
$playerinfo = "select * from players where name = 'player1'";
Re: Browser base game help
Posted: Mon Oct 21, 2013 11:06 pm
by zannza95
Okay, change this:
$piayerinfo = "select * from players where name = 'player1'";
To this:
$playerinfo = "select * from players where name = 'player1'";
Epiales
Posts: 509
Joined: Wed Aug 14, 2013 8:38 pm
i dont see the diffrence?
Re: Browser base game help
Posted: Mon Oct 21, 2013 11:07 pm
by Epiales
zannza95 wrote:Okay, change this:
$piayerinfo = "select * from players where name = 'player1'";
To this:
$playerinfo = "select * from players where name = 'player1'";
Epiales
Posts: 509
Joined: Wed Aug 14, 2013 8:38 pm
i dont see the diffrence?
In your original query you have an " i " An eye.... Not an L
piayerinfo
I just changed it to an l for player

Re: Browser base game help
Posted: Mon Oct 21, 2013 11:16 pm
by zannza95
it still does nothing i tried to echo out it ill try to query it on my connect server
Re: Browser base game help
Posted: Mon Oct 21, 2013 11:20 pm
by Epiales
zannza95 wrote:it still does nothing i tried to echo out it ill try to query it on my connect server
echo "Player1's email is". $playerinfo3['email'];
No quotation at the end? it's written wrong... Should be:
Code: Select all
echo "Player1's email is $playerinfo3[email]";
Try that?
Re: Browser base game help
Posted: Mon Oct 21, 2013 11:22 pm
by zannza95
http://www.christstruebride.com/worldof ... onnect.php
this is what im getting when i simply call the $playerinfo = "Select * from players where name = 'player1'"
echo $playerinfo