The Perfect Job (part 2) - Handling The Gray Areas
(Page 6 of 7 )
The last script - and the simplest - is the error handler, "error.php". If you look at the source code, you'll notice many links to this script; very simply, "error.php" intercepts the error and converts it to a human-readable error message, which is then displayed to the user.
<html>
<head>
<basefont face="Verdana" size="2">
</head>
<body bgcolor=white>
<? $image="error.jpg"; ?>
<? include("header.inc.php"); ?>
There was an error accessing the page you requested. Please <a
href="job_list.php">return to the main page</a> and try again.
<? include("footer.inc.php"); ?>
</body>
</html>
This article copyright Melonfire 2001. All rights reserved.Next: Endgame >>
More MySQL Articles
More By icarus, (c) Melonfire