From 8abb1350371177d2f001e0aea82c3cc703759918 Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Sat, 21 Feb 2009 10:55:14 -0500 Subject: Neatened the code a bit --- header.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'header.php') diff --git a/header.php b/header.php index 3b0dc8b..ebdee99 100644 --- a/header.php +++ b/header.php @@ -23,8 +23,11 @@ if (isset($title)) include_once('db.php'); -$getlast = mysql_fetch_array(mysql_query("SELECT * FROM config WHERE name = \"lastUpdated\"")); -$last = $getlast['value']; +$getlast = "SELECT * FROM config WHERE name = \"lastUpdated\""; +$getlast2 = mysql_query($getlast); +$getlast3 = mysql_fetch_array($getlast2); + +$last = $getlast3['value']; if ($last != date('md')) { $getpending = "SELECT * FROM pending ORDER BY id ASC LIMIT 0,1"; -- cgit 1.4.1