Browser MMO Video#2

Location of the Videos
ZeroComp
Posts: 648
Joined: Thu Oct 29, 2009 8:48 pm

Re: Video#2

Post by ZeroComp »

ok thanks got it fixed
Coding-PHP, Javascript, C++, HTML, mySQL
Modeling/Art-Blender, GIMP
Games-Unity, Game Maker 8
eltish96
Posts: 40
Joined: Tue Dec 22, 2009 10:21 am

Re: Video#2

Post by eltish96 »

Dude, you're videos are immense! Really helpful!

I've come across a quite major problem though, and i was wondering if you or any other users can help me out?

When i go into my browser and go through localhost/tutorial/test.php, i get an error message, a 404 not found message saying that the page was not found on the server....I then type in localhost/tutorial/test.php.txt and the page comes up with the coding i've just written :cry:

Can anyone help me out here? I'm desperate :D

Thanks,
//Elliot :!: :!: :!:
User avatar
OldRod
Posts: 1320
Joined: Sun Sep 20, 2009 4:26 pm

Re: Video#2

Post by OldRod »

When you saved the file, it sounds like it got the *.txt extension added on. Rename the file "test.php" and it should work.
eltish96
Posts: 40
Joined: Tue Dec 22, 2009 10:21 am

Re: Video#2

Post by eltish96 »

Thanks for you're help dude!

It worked :)

You're a proven legend :lol: :D ;)
phq
Posts: 14
Joined: Fri Dec 11, 2009 7:24 am

Re: Video#2

Post by phq »

Hi,
How can I find out how many tables down the player is? I might use this for my highscores.
User avatar
hallsofvallhalla
Site Admin
Posts: 12023
Joined: Wed Apr 22, 2009 11:29 pm

Re: Video#2

Post by hallsofvallhalla »

i am not sure what you mean. Tables down?
User avatar
Torniquet
Posts: 869
Joined: Sun Aug 02, 2009 6:18 am

Re: Video#2

Post by Torniquet »

i think he means rows.

to do a high score table is simple.

decide what you want to have the catagory as. (level, most gold etc)

then use a query similar to this...

Code: Select all

$sql = mysql_query("SELECT username, level FROM user_table ORDER BY level DESC LIMIT 10");

while($row = mysql_fetch_assoc($sql)){
  echo "user: " . $row['username'] . " level: " . $row['level'] . "<br />";
}
the order by is your catagory you want, ordered by decending (DESC) then your limt is how every many rows you want to submit. so this would display the top 10 levelers.
New Site Coming Soon! Stay tuned :D
ZeroComp
Posts: 648
Joined: Thu Oct 29, 2009 8:48 pm

Re: Video#2

Post by ZeroComp »

oh so thats how you do one of those I've been trying to come up with my own code for ages :)
Coding-PHP, Javascript, C++, HTML, mySQL
Modeling/Art-Blender, GIMP
Games-Unity, Game Maker 8
goofkop
Posts: 2
Joined: Tue Jan 26, 2010 12:08 am

Re: Video#2

Post by goofkop »

man, this tutorials are really great
i wanted to make a MMORPG
i have started it a long time ago but now i found this i can learn a lot from this guy

thanks man
this is top class
good clear explaining on the code
i know a bit of php so im already home in the wonders of php

again thanks
User avatar
hallsofvallhalla
Site Admin
Posts: 12023
Joined: Wed Apr 22, 2009 11:29 pm

Re: Video#2

Post by hallsofvallhalla »

awesome glad you like it and it is helping.
Post Reply

Return to “Older Browser MMO Videos”