Thank you for being a valued part of the CNET community. As of December 1, 2020, the forums are in read-only format. In early 2021, CNET Forums will no longer be available. We are grateful for the participation and advice you have provided to one another over the years.

Thanks,

CNET Support

General discussion

.php Error Pages

Sep 9, 2005 7:07AM PDT

I just wanted to know if it was possible to create PHP error pages?

Discussion is locked

- Collapse -
Yes
Oct 4, 2005 7:05AM PDT

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());

- Collapse -
yes - another way
Nov 12, 2005 11:46PM PST