EchoFool Posted December 22, 2009 Share Posted December 22, 2009 For some irritating reason error reporting stopped working for the second time... it used to report errors now i just get white page of nothingness! I hate this right at the top of my page: As i am session 2 - only isee the errors so normal users do not! <?php //connect session_start(); If(isset($_SESSION['Current_User']) && $_SESSION['Current_User'] == 2){ error_reporting(E_ALL); ini_set('display_errors',1); } ?> But doesn't show any thing now when i make an error why is this ? I should note it happens on mysql errors only. Even with " Or die(mysql_error());" Hope you can help. Link to comment https://forums.phpfreaks.com/topic/185965-error-reporting-stopped-working/ Share on other sites More sharing options...
trq Posted December 22, 2009 Share Posted December 22, 2009 I should note it happens on mysql errors only. Even with " Or die(mysql_error());" Also, mysql errors are NOT php errors and aren't effected by error_reporting levels set within php, also die() doesn't trigger an error, simply kills the script and echos whatever argument you give it. Link to comment https://forums.phpfreaks.com/topic/185965-error-reporting-stopped-working/#findComment-981998 Share on other sites More sharing options...
EchoFool Posted December 22, 2009 Author Share Posted December 22, 2009 So how come i get a white screen ? If i cover mysql errors with the or die (function) and the php reporting :S i still get white screen for typos etc Link to comment https://forums.phpfreaks.com/topic/185965-error-reporting-stopped-working/#findComment-982002 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.