views:

62

answers:

2
+1  Q: 

PDO Catch result

How does one catch/echo the insert results? I have a insertion statement that say that no errors occured but nothing is actually placed in the database.

A: 

There is no output from an INSERT statement, other than the meta data about errors and warnings, retrievable with errorCode() and errorInfo().

If you post your query and your table structure, it's more likely that someone can be of help. It sounds like the problem is most likely with your query.

zombat
PDO will not accept 'PASSWORD($PASSWORD)' FOR THE VALUES SECTION
Tom
A: 

PDOStatement::rowCount() returns the number of rows inserted or updated by a statement.

BabyCakes