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
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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.