sp_construct_database_error

Important Note:  The contents of this document applies ONLY to version 5.x.x of Simple:Press.  It likely does NOT apply to version 6.x.x (our latest version).

Description

Logs an error of type “database” to the SP error log. Includes stack trace information to indicate the function call that resulted in the error.

The SP error log is accessible from the SP admin area under Forum | Toolbox | Error Log.

Usage

<?php sp_construct_database_error($sql, $sqlerror) ?>

Parameters

$ sql (string)
The SQL statement that caused the error
$sqlerror (string)
The reported MySQL error text

 

Posted in