|
#1
|
||||
|
||||
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:
__________________
Do not ask me to help you work on your site that is not phpMyBitTorrent Do not ask me to make a mod for any other source Do not Ask me to setup your site. I will no longer help you setup your site, there is a setup script if you have trouble with it post in the forum here or in BT.Manager™ forum My Current Demo is here http://demo.btmanager.org/ |
Tags |
error , explained , function |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
file get contents function Help | AJ | Free Torrent Source | 1 | 16th January 2010 16:08 |
FTS 1.1 getallheaders function in announce.php | Ashur | Free Torrent Source | 2 | 5th September 2009 16:50 |
Why need this function in YSE PRE 6!?? | kp380lv | Yuna Scatari Edition (YSE) | 6 | 3rd December 2008 21:01 |
External mail function | daeron | Template Shares | 0 | 21st June 2008 18:08 |
ipcheck.php - add pager function, how? | Jack | Yuna Scatari Edition (YSE) | 0 | 27th May 2008 21:50 |