" $q = $db->query("SELECT offline, online, reason, hour, minute, timenow, maintpage FROM maintenance WHERE maintpage='inventory.php'");
$t = $db->fetch_row($q);
$db->query("SELECT * FROM users WHERE maintpage='inventory.php'");
if ($ir['maintpage']==$t['maintpage'])
{
echo'<h1>Inventory Closed for Maintenance</h1>';
echo'
<font size=3>'.$t['reason'].'</font>
this Page will be back online in '.$t['hour'].' Hour(s) And '.$t['minute'].' Minute(s)
Time from when page was Placed in Maintenance mode at '.$t[timenow].'';
echo "
Time Now: ".date('g:i:s a')."";
die();
} "
This isn't working right.