camelCase
The Case of the Mysterious Camel.
- Reaction score
- 362
I couldn't think of a way to describe it from the title, so..
Here's my predicament.
I have a stored procedure.
This stored procedure starts a transaction and inserts a row into table A and a row into table B.
The transaction will insert the rows only if the data meets a certain requirement.
From a PHP script, I call the stored procedure using a prepared statement.
I now have a problem trying to figure out if the transaction inserted any rows or not.
mysqli_stmt_affected_rows() always returns zero; regardless if the transaction succeeded or not.
Here's my predicament.
I have a stored procedure.
This stored procedure starts a transaction and inserts a row into table A and a row into table B.
The transaction will insert the rows only if the data meets a certain requirement.
From a PHP script, I call the stored procedure using a prepared statement.
I now have a problem trying to figure out if the transaction inserted any rows or not.
mysqli_stmt_affected_rows() always returns zero; regardless if the transaction succeeded or not.