Game Development Community

Torque 3d MySql connection Problem

by TigerHeros · in Torque 3D Professional · 02/25/2010 (3:56 am) · 1 replies

Hi All

I have Login,password and submit button . when the user clicks the submit button it

should register the Login name and password in remote windows dedicated server.


I am using the following code.


%sql = new Mysql();
%sql.host = "202.191.62.230";
%sql.port = 0;
%sql.user = "user";
%sql.pwd = "pass";
%sql.flag_compress = false;
%sql.flag_ssl = false;
%sql.db = "database";
%connected = %sql.connect();


It shows an error - cannot re-declare an object


should I integrate mysql code into torque 3d or does torque 3d have existing mysql supporting features?

Any ideas welcome.


Thanks n advance



#1
02/25/2010 (5:22 am)
T3D doesn't have ODBC or SQL functionality out of the box. Do a search for ODBC and you'll find a few resources that you can drop into T3D and recompile for that kind of functionality. They're not hard resources to use, and I'm using the ODBC resource now. Hope that helps.