thefollower Posted December 4, 2007 Share Posted December 4, 2007 For the last 2 days I keep getting this with my headers: The page isn't redirecting properly Firefox has detected that the server is redirecting the request for this address in a way that will never complete. * This problem can sometimes be caused by disabling or refusing to accept cookies. My firefox settings are same as always.. I don't understand why it's suddenly happening... ? Any ideas? Link to comment https://forums.phpfreaks.com/topic/80124-solved-header-problem/ Share on other sites More sharing options...
trq Posted December 4, 2007 Share Posted December 4, 2007 Can we see you call to header? Link to comment https://forums.phpfreaks.com/topic/80124-solved-header-problem/#findComment-406060 Share on other sites More sharing options...
BenInBlack Posted December 4, 2007 Share Posted December 4, 2007 probably created a recursion where the page is referencing itself over and over and over Link to comment https://forums.phpfreaks.com/topic/80124-solved-header-problem/#findComment-406063 Share on other sites More sharing options...
thefollower Posted December 4, 2007 Author Share Posted December 4, 2007 Let me know if you need to see "JailInclude.php" <?php include ("jailinclude.php"); include("energybarinclude.php"); $GetTime = mysql_query("SELECT TIME_FORMAT( TIMEDIFF( NOW( ) , `When` ) , '%i' ) AS difference FROM `jail` WHERE UserID='{$_SESSION['Current_User']}'"); $minutespassedrow = mysql_fetch_assoc($GetTime); $MinutesLeft = $minutespassedrow['difference']; $GetJailInfo = mysql_query("SELECT * FROM jail WHERE UserID='{$_SESSION['Current_User']}'"); // Fetch the row from the database $jailrow = mysql_fetch_assoc($GetJailInfo); $JailTime = $jailrow["Time"]; $Reason = $jailrow['CrimeCommited']; $Time = $jailrow['Time']; $Arrival = $Time - $MinutesLeft; If ($Arrival < 1){ $Delete = "DELETE FROM jail WHERE UserID = '{$_SESSION['Current_User']}'"; mysql_query($Delete) or die(mysql_error()); header("location: myhouseinfo.php"); } Else { Echo 'test'; } ?> when i remove: include("energybarinclude.php"); it works =/ *Just worked it out .. theres a loop of headers going on! Did not know it would happen! Thanks for help! Link to comment https://forums.phpfreaks.com/topic/80124-solved-header-problem/#findComment-406066 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.