Wednesday, September 15, 2010

Show all errors in PHP

<?php
ini_set('error_reporting', E_ALL);
ini_set('display_errors', 'On');
ini_set('display_startup_errors', 'On');
?>

For MySQL errors: echo mysql_errno($conn) . ": " . mysql_error($conn);

No comments:

Post a Comment

Developer Instincts