I use prepared expressions, for example:
$mysqlite = new SQLite3("test.sqlite", SQLITE3_OPEN_READWRITE); $stmnt = $mysqlite->prepare("INSERT INTO Friends VALUES(?,?,?)"); $stmnt->bindValue(1,4,SQLITE3_INTEGER); $stmnt->bindValue(2,"Jane",SQLITE3_TEXT); $stmnt->bindValue(3,"F",SQLITE3_TEXT); $stmnt->execute();
Is there a way to register requests when using prepared statements?
Edit:
What strategy do you suggest debugging queries if queries cannot be extracted from a prepared SQLite3 statement?
source share