Debugging MySQL Insert Failure When No Error Is Returned to PHP

Loggulpag

New Member
I'm testing some new code to insert into a MySQL database from using PHP. The test\[code\]$stmt->execute();if ($stmt->errorCode() != 0){ $arr = $stmt->ErrorInfo(); throw new Exception('SQL failure:'.$arr[0].':'.$arr[1].':'.$arr[2]);}\[/code\]It threw a number of errors that I fixed one by one. Finally it dropped through, but nothing was written to the table. Is there any other test I can do or a log I could set up to see what the problem is? MySQL is running locally on my development PC.Thanks for any help,CurtP.S. The similar posting six months ago didn't suggest any further means of debugging that I could see.
 
Back
Top