$st = $db->prepare("SELECT * FROM c6ode");
How can I check the intentional mysql error for the query in above case?
I'm using this without any additional settings:
if (!$st->execute()) { print_r($st->errorInfo()); }