- - - - -

Custom Error Page


  • Please log in to reply
1 reply to this topic

#1 Coxster

Coxster

    Moderately Sized Orange

  • Members
  • PipPipPip
  • 115 posts

Posted 12 February 2005 - 05:53 PM

During the many times Omicron has been down, I've noticed that some sites managed to get a custom error page saying that the site could not be entered as MySQL is down.

How do I do this so my visitors don't get the page of text with the list of errors on?

#2 Ghoul

Ghoul

    Very Large Orange

  • Members
  • PipPipPipPipPip
  • 492 posts

Posted 12 February 2005 - 07:26 PM

Well.. if they're doing it in PHP.

CODE
$sqlLink = @mysql_connect("localhost", "user", "password");
if (!$sqlLink)
{
    // do error stuff here
    exit;
}

// the rest of the website





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users