Open makhondi opened 5 years ago
Hi How do I get errors? errorInfo()
$query = $fluent->insertInto('article')->values($values)->execute();
This is my code:
$fluent->getPdo()->errorCode(); $fluent->getPdo()->errorInfo();
You can set this option for the PDO : PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION
And simply catch the exception.
Hi How do I get errors? errorInfo()
$query = $fluent->insertInto('article')->values($values)->execute();