ACCESS MYSQL ERROR MESSAGES
how can i have the MySQLi Server Behaviors write mysql errors if a query or insert fails, i want access to the MSYL error that's gets thrown, and perhaps write it to a file
how can i have the MySQLi Server Behaviors write mysql errors if a query or insert fails, i want access to the MSYL error that's gets thrown, and perhaps write it to a file
You can update the rsobj.php file and the queryobj.php file to write the error to a file.
Look at the execute method and there will be a line that references the ->Debug property. When debug is turned on it will write the error to the page, you could update that to write it to a file instead.
This is something we could help with in a premier support ticket.
so all i need to do is update (queryobj.php)
$this->Debug = false;
to read
$this->Debug = true;
to have the message print to the page?
One last thing, I just wanted to clarify that changing this to debug->ture will not affect the actual SQL statements form being executed? I assume that everything will be run as normal, with the only exception being the error messages being printed in the html?
thanx
James
That is correct. That setting will only change the error message written to the page.
Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.
These out-of-the-box solutions provide you proven, tested applications that can be up and running now. Build a store, a gallery, or a web-based email solution.