Browser MMO Video#2

Location of the Videos
Post Reply
mrmajic
Posts: 117
Joined: Sat Jun 27, 2009 9:37 am

Re: Video#2

Post 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'";
Mr Majic...

Current Project: http://www.deltarealm.net
feedback welcome.
Volthian
Posts: 4
Joined: Thu Aug 13, 2009 4:45 am

Re: Video#2

Post 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????????
User avatar
hallsofvallhalla
Site Admin
Posts: 12023
Joined: Wed Apr 22, 2009 11:29 pm

Re: Video#2

Post by hallsofvallhalla »

post your code here so we can see.
mrmajic
Posts: 117
Joined: Sat Jun 27, 2009 9:37 am

Re: Video#2

Post 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 ...
Mr Majic...

Current Project: http://www.deltarealm.net
feedback welcome.
Ruule
Posts: 2
Joined: Sat Aug 29, 2009 8:10 pm

Re: Video#2

Post 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..?



??



??
User avatar
Sakar
Posts: 520
Joined: Thu Apr 23, 2009 2:59 am

Re: Video#2

Post 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.
User avatar
hallsofvallhalla
Site Admin
Posts: 12023
Joined: Wed Apr 22, 2009 11:29 pm

Re: Video#2

Post by hallsofvallhalla »

are you using vista?
BigBadBob
Posts: 12
Joined: Tue Oct 27, 2009 11:47 am

Re: Video#2

Post by BigBadBob »

What Is Wrong WIth My Local Host It Donsent Work WHY
BigBadBob
Posts: 12
Joined: Tue Oct 27, 2009 11:47 am

Re: Video#2

Post by BigBadBob »

hallsofvallhalla wrote:are you using vista?
I AM
User avatar
hallsofvallhalla
Site Admin
Posts: 12023
Joined: Wed Apr 22, 2009 11:29 pm

Re: Video#2

Post 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.
Post Reply

Return to “Older Browser MMO Videos”