Jump to content

[SOLVED] Header problem


thefollower

Recommended Posts

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.