Browser MMO Video#2

Location of the Videos
Post Reply
User avatar
hallsofvallhalla
Site Admin
Posts: 12026
Joined: Wed Apr 22, 2009 11:29 pm

Re: Video#2

Post by hallsofvallhalla »

i dont see how that worked, white space doesn't matter. very weird :)
User avatar
Torniquet
Posts: 869
Joined: Sun Aug 02, 2009 6:18 am

Re: Video#2

Post by Torniquet »

was just lookin @ it again...

think i found where i ballsed up XD

by the looks of it...

from my code... i left out a semi-colon @ the end of the include ¬¬

I IS MEGA PENIS :(

n e waysssssss

lesson lernt :p
New Site Coming Soon! Stay tuned :D
User avatar
hallsofvallhalla
Site Admin
Posts: 12026
Joined: Wed Apr 22, 2009 11:29 pm

Re: Video#2

Post by hallsofvallhalla »

haha that was it! Dude I have done that so many times its not funny
User avatar
SpiritWebb
Posts: 3107
Joined: Sun Jul 12, 2009 11:25 pm

Re: Video#2

Post by SpiritWebb »

WOW...I didn't even notice the semicolon missing. LOL! Guess thats what I get for late night programming...
Image

Image
Volthian
Posts: 4
Joined: Thu Aug 13, 2009 4:45 am

Re: Video#2

Post by Volthian »

OK, so I copied everything the same way that you did in the test.php file, but I keep getting this error message: Fatal error: Call to undefined function myaql_connect() in C:\wamp\www\Tutorial\test.php on line 3. I don't know what to do about it! But, I am pretty sure it has something to do with the third line. Here is what I copied from your video:
<?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'];


So, if you could help me out, I would really appreciate it.
Thanks!
User avatar
Noctrine
Posts: 928
Joined: Thu Apr 23, 2009 9:57 pm

Re: Video#2

Post by Noctrine »

In your connect.php it should be mysql_connect, not myaql connect.
Jesse Dorsey
ProjectANI - Lead Developer Person
http://about.me/jessedorsey
Volthian
Posts: 4
Joined: Thu Aug 13, 2009 4:45 am

Re: Video#2

Post by Volthian »

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

Re: Video#2

Post by hallsofvallhalla »

you just get a white page when you go to test.php? Are you using vista?
Volthian
Posts: 4
Joined: Thu Aug 13, 2009 4:45 am

Re: Video#2

Post by Volthian »

No. Im not using vista, but I just get a white page.
User avatar
hallsofvallhalla
Site Admin
Posts: 12026
Joined: Wed Apr 22, 2009 11:29 pm

Re: Video#2

Post by hallsofvallhalla »

i noticed you have it labeled backwards above, you have what should be in test is in connect and vise versa, is this a mistake or is it really like that?
Post Reply

Return to “Older Browser MMO Videos”