Quote Originally Posted by visualAd
It won't work if you don't post the Error class too, as the DB object uses it.
woops forgot that
its only to notify me if something goes wrong. still working on it, like everything else
PHP Code:
   <?php
   
if(!defined("ERROR.CLASS"))
   {
       
define("ERROR.CLASS",true);
       class 
ERROR extends CONFIG
       
{
           var 
$Error_EmailAddress "[email protected]";
           function 
ERROR($message)
           {
               
$msg $message;
               
$msg .= "\n\r" $_SERVER['REMOTE_ADDR'];
               
$msg .= "\n\r" date("D M j G:i:s T Y",time());
             
$headers "From: "$Error_EmailAddress."<" $Error_EmailAddress ">\r \n";
          @
mail($this->Error_EmailAddress,"ERROR",$msg,$headers);    
               print 
"<pre>$msg</pre>";
           }
       }
   }
   
?>