Menu
Situation:
I have a bunch of php files in the public html directory. I’d like to have a common ‘error’ page, with a parameter for displaying either the ‘not found’ or ‘hidden’ or whatever error.
But I also want to have an SQL error, which it displays when a query fails. I’d like the error page to have the query that caused the problem, so it can record it for me or whatever, but I’d rather it not be passed through the URL.
I call the error page with header(“error.php?sql”);
Is there any elegant way to POST data or otherwise make it available to the error page?