Error function explained
To generate a basic error report you can use 1 of 3 PMBT error functions
first is the btsqlerror which is the Mysql error PHP Code:
example PHP Code:
and display a error block reporting the query the error code and Mysql message for this error to use this PHP Code:
PHP Code:
$tittle is the header of the error block this field is not required $fatal tells the script if it should come to a complete stop or just carry on after display By default it is fatal and well stop the script. example Fatal Error PHP Code:
PHP Code:
PHP Code:
in the admin logs $message is the main error and is required $error is the title of the error and is not required this well add to the data base a row for error type error body user IP the created the error and a time stamp Example PHP Code:
|
All times are GMT +2. The time now is 18:07. |
Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.