Page 6 of 13
Re: Video#2
Posted: Fri Aug 14, 2009 11:06 pm
by mrmajic
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'";
Re: Video#2
Posted: Wed Aug 19, 2009 9:47 pm
by Volthian
WOW. I am having seriouse problems with this.So, I put everything the way it was supposed to be, and now I am getting this Error Message: Parse error: parse error in C:\wamp\www\Tutorial\test.php on line 5. Can anyone tell me what is going on????????
Re: Video#2
Posted: Thu Aug 20, 2009 12:09 am
by hallsofvallhalla
post your code here so we can see.
Re: Video#2
Posted: Fri Aug 28, 2009 5:49 am
by mrmajic
im thinking that your connect.php file should be renamed to test.php and vista-versa .. that could be a problem when your connect.php file is including your connect.php file ...
Re: Video#2
Posted: Sat Aug 29, 2009 8:20 pm
by Ruule
Hi, Ive watch your two first videos, but I have a big problem:
when I type in localhost on mozilla, the page couldnt connect..?
??
??
Re: Video#2
Posted: Sat Aug 29, 2009 9:12 pm
by Sakar
Is WAMP running?
Did you start all of WAMP's services?
If you said yes to both, then I have no idea what the problem is. If you said no to one or more, then you have most likely found the problem and solution.
Re: Video#2
Posted: Mon Aug 31, 2009 1:30 am
by hallsofvallhalla
are you using vista?
Re: Video#2
Posted: Tue Oct 27, 2009 1:07 pm
by BigBadBob
What Is Wrong WIth My Local Host It Donsent Work WHY
Re: Video#2
Posted: Tue Oct 27, 2009 1:09 pm
by BigBadBob
hallsofvallhalla wrote:are you using vista?
I AM
Re: Video#2
Posted: Tue Oct 27, 2009 1:40 pm
by hallsofvallhalla
vista shouldnt cause a issue but it has before. Vista works fine for me. once I see your screenie of your problem I can troubleshoot some more.