this is my scripts
________________________Connect.php______________________________
Code: Select all
<?php
$db = mysql_connect ("localhost" , "usernam" , "password") or die ("Could not connect to db");
if ( $db)
die ("no db");
if ( mysql_select_db ("tutorial",$db))
die ("No Database Selected");
?>
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'];
?>