jaiffed Posted February 17, 2010 Share Posted February 17, 2010 $result= mysql_query($query,$link) or die("include 'memberadd.php'"); this script not working please help me what is the syntax to open memberadd.php when connection die is it possible or anything else syntax to open php file when connection die Quote Link to comment https://forums.phpfreaks.com/topic/192432-link-when-die/ Share on other sites More sharing options...
sader Posted February 17, 2010 Share Posted February 17, 2010 try this $result= mysql_query($query,$link) if($result) { } else { include('memberadd.php'); } Quote Link to comment https://forums.phpfreaks.com/topic/192432-link-when-die/#findComment-1013939 Share on other sites More sharing options...
LeadingWebDev Posted February 17, 2010 Share Posted February 17, 2010 $result= mysql_query($query,$link) if(!$result) { include('memberadd.php'); } Quote Link to comment https://forums.phpfreaks.com/topic/192432-link-when-die/#findComment-1013941 Share on other sites More sharing options...
sreekuttan Posted February 18, 2010 Share Posted February 18, 2010 $result= mysql_query($query,$link) if(!$result) { header("Location: ../memberadd.php"); } What about redirecting to memberadd.php Quote Link to comment https://forums.phpfreaks.com/topic/192432-link-when-die/#findComment-1014095 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.