On Thu, Jul 7, 2011 at 9:31 AM, James_21th <james_2...@yahoo.com> wrote:
> try { > $result=$dbh->exec("INSERT INTO tbl1(one,two) VALUES ('new1','new2')"); > } catch(PDOExecption $e) { > print "Error!: " . $e->getMessage() . "</br>"; > } > PDO _only_ throws exceptions if you set the exceptions reporting option. Try instantiating it like this: $attr = array( PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION ); $dbh = new PDO($dsn, "", "", $attr ); -- ----- stephan beal http://wanderinghorse.net/home/stephan/ _______________________________________________ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users