I have a message board script that requires certain parameters like
message_id, thread_id, etc.  The whole thing works fine, I'd like to have a
generic error page to default to in the case that someone fools with the
parameters above - for example, setting the thread id to 400 when there are
only 300 threads.  Right now, it just generates the mysql error message,
which doesn't look nice.  I know you can use the die() function after the
mysql_query function to display some text in the case of an error, but I
want to go a little further by redirecting to an error page.  How would I go
about doing this?

Any help would be greatly appreciated.

- Doug


------------------------------------------------------------
http://www.phreshdesign.com

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to