Check this, I got an idea!

Archives Forums/BlitzPlus Programming/Check this, I got an idea!

Apollonius(Posted 2003) [#1]
u know how u do php and mysql, if u ever wanted to make a Text based game with mysql I got an idea its pretty vague tho so here goes:

u know how u use the $_GET in php to get from a url like:

if u create on ur server a data.php

and from Blitz game u made load data.php?account=bob&password=123&gamescore=123

make the data.php goto mysql and write the score for that account,

but where i failed to have an idea is u can write! but how can u get data from it???

Anyone's following my idea or am I totally crazy?

Todd(Posted 2003) [#2]
Several people here have used that same idea or one similar to make a high score system. I haven't tried it myself, but it seems like an good way to keep track of scores. One thing you might want to consider though is people putting in fake scores. You would probably want to use some kind of encryption to send the high scores to the server to keep that from happening.

Reading the high scores off of the server works just the same way as sending them. You simply output the data you need to the browser in your Php script, and then read that data into your game. There's some code in the code archives that can do this for you too: HttpGet.