Whenever a SQL Die statement is invoked in php, i would like to have log to file or database
<p>i need to store the following information:</p>

<ol>
<li>DateTime of Die Statement</li>
<li>URL of the page that called the die Statement SQL Error Message SQL Query.</li>
</ol>

<p>whenever i wrote PHP code like mysql_connect(...) or die(...) and mysql_connect,return false or didn't connect so error message in die,store in log file or database</p>
