Thread: SQLite
View Single Post
  #10  
Old 04-12-2009, 03:07 PM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
Well for errors I gave the suggestion to write a wrapper function:

PHP Code:
function getsql(query) {
  
temp.req requestsql(query,true);
  if (!
temp.req.completed && !waitfor(temp.req,"onReceiveData",60))
    return 
NULL;
  if (
temp.req.error!="")
    echo(
temp.req.error);
  return 
temp.req;

For escaping use the string.escape() function.
Reply With Quote