TTMW Posted July 27, 2007 Share Posted July 27, 2007 at present i am using the die() method to show an error message,but is it possible to redirect to an error page instead, and how would i do this?or any other options for better ways would be appreciated,thanks Quote Link to comment Share on other sites More sharing options...
Caesar Posted July 27, 2007 Share Posted July 27, 2007 <?php header("location: error.php");exit; ?> Quote Link to comment Share on other sites More sharing options...
cluce Posted July 27, 2007 Share Posted July 27, 2007 $auth = @mysqli_query($mysqli,$val) or die(header("Location: error.html")); Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.