Your webhost should have turned the ability to view PHP error pages on. If this is done you could use the 'die' command and the mysql_error() function. It can be used like this...
$result = mysql_query($query, $link) or die("Invalid query: " . mysql_error());
I just wanted to know if it was possible to create PHP error pages?

Chowhound
Comic Vine
GameFAQs
GameSpot
Giant Bomb
TechRepublic