JustinK101 Posted March 24, 2008 Share Posted March 24, 2008 I am doing the following: mysql_select_db("wrong_db_name_here") or die("Woops! There was an error."); I would expect to see the text: 'Woops! There was an error.' but all I see is a plain white screen with no text. Any ideas why? Quote Link to comment https://forums.phpfreaks.com/topic/97545-mysql_select_db-not-throwing-an-error/ Share on other sites More sharing options...
MadTechie Posted March 24, 2008 Share Posted March 24, 2008 strange, have you tried $test = mysql_select_db("wrong_db_name_here"); if(!$test) { die("Woops! There was an error.")); } Quote Link to comment https://forums.phpfreaks.com/topic/97545-mysql_select_db-not-throwing-an-error/#findComment-499101 Share on other sites More sharing options...
PFMaBiSmAd Posted March 24, 2008 Share Posted March 24, 2008 You are probably receiving a fatal parse error. Check your web server error log file. Quote Link to comment https://forums.phpfreaks.com/topic/97545-mysql_select_db-not-throwing-an-error/#findComment-499111 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.