Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Warning: Cannot modify header information - headers already sent
#9
I sorted it by putting:

PHP Code:
    //code executes if admin decides to delete query
    
if($id == "delete" && $session->isAdmin()) {
        
ob_start(); header("Location:".$session->referrer."");
        
        
$query_id $_GET['queryID']; //Gets the querie's ID
        
$q "DELETE FROM ".TBL_WMQUERIES." WHERE wmqueryID ='$query_id' LIMIT 1";
        
$database->query($q) or die("MySQL error: ".mysql_error());
        
ob_flush();
        }
//if ID=delete 

and:

PHP Code:
<?php ob_start(); ?>
on line 1 of header.php



thanks for the help anyways guys!
Reply


Messages In This Thread
RE: Warning: Cannot modify header information - headers already sent - by designavenger - 02-18-2010, 04:09 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Change warning level color with php [help] KingOfHunt3rs 0 1,107 12-04-2014, 08:45 AM
Last Post: KingOfHunt3rs
  [TUT] How to make, and call headers and footers. Extasey 0 677 05-12-2010, 10:42 PM
Last Post: Extasey

Forum Jump:


Users browsing this thread: 1 Guest(s)