Posted by shaun On the technical side i use a MySQL database that has 4 tables, easy, medium, hard (for the questions) and highscores. SQL queries can be embedded in PHP to query the database and return/update records as required. I don't have much experience with ASP, so i can't really compare the two, but i do think PHP is a very user friendly language (i've picked it up very quickly), especially if your familiar with Java or even C++. Although it is object orientated, i don't make use of that (at least not yet, depends how good i get at it!) i just use functions in my scripts. I've saved a copy of my code for reddwarfgame.php and rd2.php in txt format on my site: [URLs Removed by Paul] I use sessions to store game data each time the page reloads, i don't know if you are familiar with sessions or not, if not feel free to ask me if your having trouble following the code. I commented it fairly well as i was writing it so it should be easy to follow whats going on. One last thing, i'm not a very 'elegant' programmer, so the way i've done things will probably look terrible to someone who really knows what they are doing!
![]()
on February 15, 2004, 6:26 pm, in reply to "(no subject)"
Message modified by board administrator February 15, 2004, 9:14 pm
thanks for your feedback Paul. a few people have said about putting the answers on separate lines and it will make it easier to select the answer so i think i will do that.
Message Thread
![]()
« Back to index