Neil Smith [MVP, Digital media] wrote:
When you create your DB connection $db, follow the connection line directly after with this :$db->setAttribute(PDO::ATTR_ERRMODE , PDO::ERRMODE_EXCEPTION);The default is I believe PDO::ERRMODE_SILENT which is confusing to most people the first time.
Thanks! It works now. Cheers, Daniel. -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php