FluerVanderloo
New Member
"What about Elevenses? Lucheon? Afternoon tea? Dinner? Supper? He knows about them, doesn't he?"
mmorales is building an army of Orcs and now has 261 soldiers in mmorales's war machine.
What he said.... eh???Spot said:what she said...
/****************************************
Main layout
****************************************/
td.header
{
background-color: #2e467b;
}
td.headerline
{
color: #ffffff;
background-color: #c0c0c0;
}
td.menu
{
background-position: 0% 100%;
background-repeat: no-repeat;
background-image: url("../images/layout/menu/leftmenubg.png");
background-color: #e0e0e0;
border-style: solid;
border-width: 1px;
border-color: #547798;
}
whats on my clipboard said:
$lastrundate = lastrundate();
global $now;
if(!preg_match('/[a-zA-Z0-9-]/i', $room)) {
echo "Invalid input";
exit;
}
if($room=="STU" || $room=="FAC") {
if($room == "FAC") {
$p = 1;
}
elseif($room == "STU") {
$p = 2;
}
$foo = pg_exec($GLOBALS["conn"], "SELECT reading_time FROM environment WHERE room_number='$p' order by reading_time desc;");
$row = pg_fetch_row($foo, 0);
$tempcheckdate = $row[0];
$foo = pg_exec($GLOBALS["conn"], "SELECT temperature FROM environment WHERE reading_time='$tempcheckdate' and room_number='$p';");
$rows = pg_numrows($foo);
if($rows > 0) {
$row = pg_fetch_row($foo, 0);
$temp = $row[0];
echo "<div id=\"smallblue\">$room server room temp: $temp*F<br>Reporting $tempcheckdate</div>";
exit;
}
else {
echo "Database returned 0 results";
}
}