Posts by Evandro Weiss • 23 points
1 post
-
2
votes2
answers436
viewsQ: SQL parameter in PDO PHP does not work
The following code returns 11 records from the database: $dbh = new PDO('sqlite:db_coleta.sqlite3'); $sth = $dbh->prepare('SELECT * FROM ROTA_VIEW WHERE usuario_id = 1 AND 0 = 0');…