Browser MMO Video#2
Re: Video#2
ok thanks got it fixed
Coding-PHP, Javascript, C++, HTML, mySQL
Modeling/Art-Blender, GIMP
Games-Unity, Game Maker 8
Modeling/Art-Blender, GIMP
Games-Unity, Game Maker 8
Re: Video#2
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
Can anyone help me out here? I'm desperate
Thanks,
//Elliot
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
Can anyone help me out here? I'm desperate
Thanks,
//Elliot
Re: Video#2
When you saved the file, it sounds like it got the *.txt extension added on. Rename the file "test.php" and it should work.
Re: Video#2
Thanks for you're help dude!
It worked
You're a proven legend
It worked
You're a proven legend
Re: Video#2
Hi,
How can I find out how many tables down the player is? I might use this for my highscores.
How can I find out how many tables down the player is? I might use this for my highscores.
- hallsofvallhalla
- Site Admin
- Posts: 12023
- Joined: Wed Apr 22, 2009 11:29 pm
Re: Video#2
i am not sure what you mean. Tables down?
Re: Video#2
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...
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.
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 />";
}
New Site Coming Soon! Stay tuned
Re: Video#2
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
Modeling/Art-Blender, GIMP
Games-Unity, Game Maker 8
Re: Video#2
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
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
- hallsofvallhalla
- Site Admin
- Posts: 12023
- Joined: Wed Apr 22, 2009 11:29 pm
Re: Video#2
awesome glad you like it and it is helping.