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).


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.


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


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


Posted in