pdo-debug
pdo-debug copied to clipboard
A typo in the README
You have a typo in the docs that confused some unsuspecting fellow who came to Stack Overflow, scared by the fact that pdo-debug is not using prepare().
It's better to change the line
$sql = "INSERT INTO test (col1, col2, col3) VALUES (:col1, :col2, :col3)";
to
$query = $pdo->prepare("INSERT INTO test (col1, col2, col3) VALUES (:col1, :col2, :col3)");
just for clarity
Thanks, I'll do that! But to be fair, it says
$sql = "INSERT INTO test (col1, col2, col3) VALUES (:param1, :param2, :param3)"; $query = $database_connection->prepare($sql); $query->execute($parameters);
so these guys will become unconfused by reading one line line further :)