summary refs log tree commit diff stats
path: root/header.php
diff options
context:
space:
mode:
authorStar Rauchenberger <fefferburbia@gmail.com>2009-02-21 10:55:14 -0500
committerStar Rauchenberger <fefferburbia@gmail.com>2009-02-21 10:55:14 -0500
commit8abb1350371177d2f001e0aea82c3cc703759918 (patch)
tree36e2975a906a17545c2bf786e7a18c6c28f78559 /header.php
parent0cffae949ce7a7979a76582fd5b1e19f6c192d8b (diff)
downloadpillowcase-8abb1350371177d2f001e0aea82c3cc703759918.tar.gz
pillowcase-8abb1350371177d2f001e0aea82c3cc703759918.tar.bz2
pillowcase-8abb1350371177d2f001e0aea82c3cc703759918.zip
Neatened the code a bit
Diffstat (limited to 'header.php')
-rw-r--r--header.php7
1 files changed, 5 insertions, 2 deletions
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))
23 23
24include_once('db.php'); 24include_once('db.php');
25 25
26$getlast = mysql_fetch_array(mysql_query("SELECT * FROM config WHERE name = \"lastUpdated\"")); 26$getlast = "SELECT * FROM config WHERE name = \"lastUpdated\"";
27$last = $getlast['value']; 27$getlast2 = mysql_query($getlast);
28$getlast3 = mysql_fetch_array($getlast2);
29
30$last = $getlast3['value'];
28if ($last != date('md')) 31if ($last != date('md'))
29{ 32{
30 $getpending = "SELECT * FROM pending ORDER BY id ASC LIMIT 0,1"; 33 $getpending = "SELECT * FROM pending ORDER BY id ASC LIMIT 0,1";