purservices
04-22-2004, 02:05 PM
Im trying to make a mySQL Connection Error Page but how do i make one with out showing the php error line when it fails to connect to mySQL?
![]() | View Full Version : php help, making a mySQL Connection Error Page purservices 04-22-2004, 02:05 PM Im trying to make a mySQL Connection Error Page but how do i make one with out showing the php error line when it fails to connect to mySQL? trukfixer 04-22-2004, 02:35 PM $sql-"SELECT * FROM table"; $res=mysql_query($sql); if(!$res) { include("error_page.html"); die(); } in error_page.html will be your custom error message, and if you desire to print the specific mysql error just : $msg=mysql_error(); //inside the .html error page where you want the error to show //just do: <?= "$msg" ?> HTH. |