WooHoo for once i'm not sure what to do! well.. once again kind of..
Right, heres my code.
Then my Redirect Code:
footer code:
Then the error:
Some Facts:
1. header.php is included up top before all scripts
2. footer.php has access to the mySQL Functions
thats about it got tips? do post. lol
Right, heres my code.
Code:
<?php
}else{
$notes = addslashes($_POST['notes']);
$update = $MySql->sqlQuery("UPDATE `".DB_PREFIX."notes` SET `content` = '$notes' WHERE `username`= '-------XxStaffxX-------';");
print "Notes Updated! Please Wait...";
$Functions->redirect('http://joe.hrwr.org/admin1/', '2');
}
?>
Then my Redirect Code:
Code:
function redirect($where, $time = '10'){
require('Lib/footer.php');
sleep($time);
print "<script type=\"text/javascript\">
window.location.href='$where';
</script>\r\n";
}
footer code:
Code:
<b>Total Queries</b>: <?=$MySql->QueryCounter?> |
<b>Total Exec. Time</b>: <?=$MySql->getTotalTime()?>
</p>
Then the error:
Code:
[B]Fatal error[/B]: Call to a member function getTotalTime() on a non-object in [B]/home/shadow31/public_html/joe/Lib/footer.php[/B] on line [B]14
[/B]
Some Facts:
1. header.php is included up top before all scripts
2. footer.php has access to the mySQL Functions
thats about it got tips? do post. lol