
-----------------------------------
unknowngiver
Mon May 15, 2006 9:29 am

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 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]

-----------------------------------
[Gandalf]
Tue May 16, 2006 4:54 am


-----------------------------------
Turing is far from the greatest at handling external...  things...  like PHP.  The only place I can lead you to for advice is [url=http://www.compsci.ca/v2/viewtopic.php?t=10800]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].
