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? 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.")); } 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. 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
Archived
This topic is now archived and is closed to further replies.