pdoPrepare and Execute your SQL statements


Remarks

Warning

Prepared statement cannot care a wild parameter for the table names. For exemple this following statement is not correct :

$query = "SELECT name, city FROM ? WHERE id = ? AND country = ?";

The correct prepared query would be :

$query = "SELECT name, city FROM users WHERE id = ? AND country = ?";