You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Can we implement this in sqlite3 world to achieve one-liner sql-injection safety?
$db = new SQLite3(':memory:');
$db->exec('CREATE TABLE myTable (id INTEGER PRIMARY KEY, a TEXT, b TEXT, c TEXT)');
$st = $db->execute_query('SELECT ?,?,?',['a','b','c']);
Or even extend query() and exec() functions with parameters array:
$st = $db->query('SELECT ?,?,?',['a','b','c']);
$st = $db->exec('UPDATE MyTable set a=?, b=? where c=?',['a','b','c']);