Game Development Community

HTTPObject and MySQL?

by Mitchell · in Torque Game Engine · 06/10/2009 (7:06 pm) · 4 replies

Let's say I have a client. I want to check how many coins the client has, but the info is stored in a database. How would I connect to the database? I heard you can do it with HTTPObject and TCPObject...

#1
06/10/2009 (8:02 pm)
If you use PHP to interface with the TGE server using HTTP objects, you should be able to do this (haven't done it myself, so brighter people may chime in with better info), but in general, for database access, there are resources to add to the source code. Obviously you need source for that, but if you have web experience and pull this off, it would be a good resource for a lot of people :)
#2
06/10/2009 (8:59 pm)
Yep, I used Php to interface with TGE server using TCPObject(HTTTP object should work just the same).

But in my case it was to check if the client playing the game have registered with the Key(which is stored in a database) he is using.
#3
06/11/2009 (1:17 pm)
So... I'm not really good with this stuff. How would I use TCPObject?
#4
06/14/2009 (1:37 pm)
Or what would I put in the PHP file?