Browser base game help
Browser base game help
<?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.
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
try echo "text";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.
Maybe?
Re: Browser base game help
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
I'm still new to much of this, but you can echo playerinfo:zannza95 wrote: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
Code: Select all
echo "playerinfo";Might be able to debug this way...
Code: Select all
$piayerinfo = "SELECT * FROM 'players'";
$result = mysql_query($playerinfo ) or trigger_error(mysql_error()." ".$piayerinfo );Re: Browser base game help
Okay, change this:zannza95 wrote: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
$piayerinfo = "select * from players where name = 'player1'";
To this:
$playerinfo = "select * from players where name = 'player1'";
Re: Browser base game help
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?
$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
In your original query you have an " i " An eye.... Not an Lzannza95 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?
piayerinfo
I just changed it to an l for player
Re: Browser base game help
it still does nothing i tried to echo out it ill try to query it on my connect server
Re: Browser base game help
echo "Player1's email is". $playerinfo3['email'];zannza95 wrote:it still does nothing i tried to echo out it ill try to query it on my connect server
No quotation at the end? it's written wrong... Should be:
Code: Select all
echo "Player1's email is $playerinfo3[email]";
Re: Browser base game help
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
this is what im getting when i simply call the $playerinfo = "Select * from players where name = 'player1'"
echo $playerinfo