Hey guys,
Thanks for viewing my thread.
I would like to log php errors to a database, this is easily done with mysql errors in the following way:
// The function to write the logs to the database.
function write_to_database ($error)
{
// Writes error to database
}
mysql_query($query) or die(write_to_database(mysql_error()));
The above is disturbingly easy, but how can I do this with PHP error ?
Is there a easy way perhaps?