''); if(!empty($error)) preg_match("#'(.+?)'#is", $error, $out); $head = $error ? 'MySQL error:
'. $error .'

':NULL; $error_log = date("Y-m-d h:i:s") .' '. $head .' Query:
'
            . str_replace($out[1], ''. $out[1] .'', $trace[0]['args'][0])
            .'


File: '. $trace[0]['file'] .'
Line: '. $trace[0]['line'] .''; echo($error_log); } else return $result; } static public function result($res, $row, $column = 0) { $i = 0; while($data = mysqli_fetch_array($res, MYSQLI_BOTH)) { if($row == $i++) return $data[$column]; } } function deprecated($function) { $trace = debug_backtrace(); echo('Fatal error:
' .'Function '. $function .'' .' is deprecated and has no analog in
' .''. $trace[0]['file'] .'' .' on line '. $trace[0]['line'] .'' ); } }