Jump to content


help!! headers error when redirecting..

  • Please log in to reply
1 reply to this topic

#1 gabrielkolbe

  • Members
  • PipPipPip
  • Advanced Member
  • 41 posts

Posted 26 October 2006 - 06:36 PM

Hi I get this error..

Warning: unlink(../logos/): Is a directory in /home/public_html/include_cs/functions.php on line 1710

Warning: Cannot modify header information - headers already sent by (output started at /home/public_html/include_cs/functions.php:1710) in /home/public_html/include_cs/functions.php on line 1714

$query="SELECT * FROM site2 WHERE user_id = '".$_SESSION['user_id']."'"; 
	$result = mysql_query($query) or die(mysql_error());
	while ($row = mysql_fetch_object($result)) {unlink("../logos/".$row->logo.""); }

	$sql="UPDATE site2 set logo = '' WHERE user_id = '".$_SESSION['user_id']."'"; 
	mysql_query($sql) or die(mysql_error());
 header("Location: index.php?action=personalise_header");

I know there is not suppose to be any code before the header that are printed , there are none!! this is a simple deletion script, it deletes a picture then get redirected.

If somone has any advice to see if something IS printed please let me know..

The Devil never lies..he just almost tell the truth

#2 BillyBoB

  • Members
  • PipPipPip
  • Advanced Member
  • 630 posts

Posted 26 October 2006 - 09:24 PM

none u say wat about the
$result = mysql_query($query) or die(mysql_error());

because usually or die(mysql_error()); is printed onto the screen?...

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users