- Code: Select all
$BARON_nullObj = new SimObject();
function BARON_sqlNullCallback(%rs)
{
//echo("CALLBACK: " @ %rs);
}
function BARON_sqlExecute(%sql)
{
// echo("QUERY: " @ %sql);
%s = dbi.Query($BARON_nullObj,BARON_sqlNullCallback,%sql);
dbi.remove(%s);
}
How does this Query work? Can I do a select statement and pull data from the database? I tried echoing the callback and it returns a callback number it seems.
I am trying to pull values from the local database and use them in some code, how would I go about doing that?