mob
icon='player.dmi'
var
level = 1
verb
load()
if(!connection)
usr << "fail"
else
usr << "still connected... querying"
var/list/data = queryGet("SELECT * FROM test")
usr.name = "[data[name]]"
usr.level = data[level]
connect()
connection.Connect(DBI,usern,pass)
if(!connection)
usr << "Connection failed - [connection.ErrorMsg()]"
else
usr << "connected [connection.server]"
queryGet(var/q)
usr << "new query([q])"
var /DBQuery/qe = connection.NewQuery()
usr << "execute"
qe.Execute("[q]")
usr << "success?"
return qe.GetRowData()
Problem description:
Dantom's DB library hangs up on qe.Execute() my output is:
connected localhost still connected... querying new query(SELECT * FROM test) execute
any and all queries i send through lock up on Execute() and don't make it to usr << "success?"
any idea why?
If its windows did you add the libmysql.dll to your system programs (eg, in C:\WINDOWS\system)?
Did you output de.ErrorMsg() to retrieve the error that the library is receiving ?
Would you share the error message if these don't help with the problems?
Thanks!