Errors
Posted: Thu Jun 09, 2011 3:04 am
Hello
I just started with the tutorials currently on vid 2 and am already having problems.
I followed the vid exactly and for some reason I keep getting errors.
This is one of the errors I keep getting
( ! ) Parse error: syntax error, unexpected T_STRING in E:\wamp\www\Tutorial\test.php on line 5
not sure why here is the code maybe someone can point it out to me. Any help would be greatly appreciated
<?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 "Player1's id is " . $playerinfo3['id'];
?>
I just started with the tutorials currently on vid 2 and am already having problems.
I followed the vid exactly and for some reason I keep getting errors.
This is one of the errors I keep getting
( ! ) Parse error: syntax error, unexpected T_STRING in E:\wamp\www\Tutorial\test.php on line 5
not sure why here is the code maybe someone can point it out to me. Any help would be greatly appreciated
<?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 "Player1's id is " . $playerinfo3['id'];
?>