libdatabase : connection problem
Revolution
rrevolution at softhome.net
Sun Aug 28 05:46:18 EDT 2005
Sunday, August 28, 2005 12:45:34 PM (GMT +02:00)
event from button :
local tDbA = ""
local i = 0
local tDataA = ""
put "mysql" into tDbA["Type"]
if dbaddress is empty then put "127.0.0.1" into dbaddress
put fld "dbaddress" into tDbA["Host"]
put "bb" into tDbA["Name"]
put fld "dbuser" into tDbA["Username"]
put fld "dbpassword" into tDbA["Password"]
libDB_RegisterDatabase "BBDataBase", tDbA
libDB_Connect "BBDataBase"
if libDB_GetDBConnectionID("BBDataBase") is an integer then
put "status : connected" into fld "statuslabel"
else
put "status : NOT connected" into fld "statuslabel"
end if
what's wrong ?
it doesn't connect ?
thank you.
regards,
Adrian C.
More information about the use-livecode
mailing list