Results 1 to 2 of 2
  1. #1

    php help, making a mySQL Connection Error Page

    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?
    [email protected]

  2. #2
    PHP Code:
    $sql-"SELECT * FROM table";

    in error_page.html will be your custom error message, and if you desire to print the specific mysql error just :
    PHP Code:

    //inside the .html error page where you want the error to show 
    //just do: <?= "$msg?>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts