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 Link to comment https://forums.phpfreaks.com/topic/62073-diesend-me-to-another-page/ Share on other sites More sharing options...
Caesar Posted July 27, 2007 Share Posted July 27, 2007 <?php header("location: error.php");exit; ?> Link to comment https://forums.phpfreaks.com/topic/62073-diesend-me-to-another-page/#findComment-309042 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")); Link to comment https://forums.phpfreaks.com/topic/62073-diesend-me-to-another-page/#findComment-309127 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.