Computer Science Canada

PHP-Turing [Game]

Author:  unknowngiver [ Mon May 15, 2006 9:29 am ]
Post subject:  PHP-Turing [Game]

Hey
I was wondering if there is a way to make a game that gets the data from a database in a php based host

So it will a game where pplz can connect from anywhere..login..and get data from the database and use it [to play the game]


basically what i need is a way that will enable me to open a php page in the background [so users dont really see the webpage popup everytime] that will grab stuff from a database and import it to the turing program...which will use it...and then it will open another page which will update the database...

so the main screen could be

code:
var username,password : string
put "Username: "
get username
put "Password: "
get password


Now i need a way of running a php from lets say my site "www.MsPrince.com/checklogin.php" [page doesnt exist yet" which will have a code that
1. gets what the user typed in the turing program
2. Compares it with the database....and if it exists then it puts something in the variable
for example
correctlogin=1 ;

and then goes back to turing
so if correctlogin is 1 then its true and the turing program keeps runnning...and goes to then next screen...and correctlogin is 0 then it gives an error...etc...

thats just ONE of the thing....

Thanks[/code]

Author:  [Gandalf] [ Tue May 16, 2006 4:54 am ]
Post subject: 

Turing is far from the greatest at handling external... things... like PHP. The only place I can lead you to for advice is here, though I now realize that you've already seen that topic. You'll have to try experimenting on your own (you'll probably learn the most this way), or you can try private messaging the author of that tutorial (though I don't think he comes here anymore). Another piece of advice I can give you is to familiarize yourself with the Net module, we have a tutorial on that in [Turing Tutorials].


: