Game Development Community

PHP and MySQL Help?

by none · in Torque Game Engine · 11/15/2010 (3:22 am) · 3 replies

Hi everyone! I'm trying to use this resource: www.torquepowered.com/community/resource/view/4085/4#comments. I've uploaded the game_login.php to my webserver. I successfully added all of the engine and script changes without a problem. However, where my problems begin. The game_login.php calls for a variables.php. I'm not exactly sure what should be in this file let alone how to script it. Next, I've created a MySQL database to run on my computer. Does this need to be connected to my webserver in anyway? I'm sure I'll have more questions once these have been answered, so thank you in advance!

#1
11/15/2010 (4:27 am)
EDIT: I've made a Microsoft SQL instead. I'm using the 2005 version of mssql express. I've made a database but do not know how to check if it is running. When this is complete, and I've integrated all of the code/script changes, what should I do next?
#2
11/15/2010 (6:29 am)
You will need ot modify the php script to speak to the sql server. Then your php query calls might change a bit. I have not checked the code, but this is my understanding of how PHP works.

This link might be helpful:
http://php.net/manual/en/book.mssql.php
#3
11/15/2010 (2:03 pm)
Thankyou! I'll read this as soon as I can!