Volthian wrote:OK, so I fixed the mysql thing, but now when I go to load the page, nothing shows up. Here are both of the files I have down. Here is the Test.php File: <?php
$db = mysql_connect("localhost","root","")or die("Could not connect to db");
if(!$db)
die("no db");
if(!mysql_select_db("tutorial",$db))
die("No Database selected");
?>
And here is the Connect.php File:<?php
include 'connect.php';
$playerinfo = "select ' from players where name = 'player 1'";
$playerinfo2 = mysql_query($playerinfo) or die "Couldn't select players");
$playerinfo3 = mysql_fetch_array($playerinfo2);
echo "player 1's email is" . $playerinfo3['email'];
can anyone help me out with this? I mean, I have no idea what I did wrong. Because as far as I am concerned, I copied everything correctly. But, I don't want to continue to video three until I get this right. So, if anyone can help me out, I would greatly appreciate it. Thanks.
$playerinfo = "select ' from players where name = 'player 1'";
should read: $playerinfo = "select * from players where name = 'player 1'";