I'm having a bit of trouble connecting to a mysql database that's hosted on 1and1. here is the code i currently have:
Code: Select all
global gConnectionID
put "dbXXXXXXX.db.1and1.com" into tDatabaseAddress
put "dbXXXXXXX" into tDatabaseName
put "dbXXXXXXX" into tDatabaseUser
put "XXXXX" into tDatabasePassword
put revOpenDatabase("MySQL", tDatabaseAddress, tDatabaseName, tDatabaseUser, tDatabasePassword) into tResult
if tResult is a number then
put tResult into gConnectionID
answer "it worked"
else
put empty into gConnectionID
answer error tResult
end ifThanks in advance!
-Sean
