02-18-2010, 04:09 AM
I sorted it by putting:
and:
on line 1 of header.php
thanks for the help anyways guys!
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(); ?>
thanks for the help anyways guys!