summary refs log tree commit diff stats
path: root/pages/blog.php
diff options
context:
space:
mode:
Diffstat (limited to 'pages/blog.php')
-rwxr-xr-xpages/blog.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/pages/blog.php b/pages/blog.php index 879aa0f..f99ad17 100755 --- a/pages/blog.php +++ b/pages/blog.php
@@ -45,7 +45,7 @@ if (isset($_GET['post']))
45 45
46 $title = stripslashes($getpost3['title']) . ' - Blog Archive'; 46 $title = stripslashes($getpost3['title']) . ' - Blog Archive';
47 47
48 $getback = "SELECT * FROM updates WHERE id = " . ($getpost3['id']-1); 48 $getback = "SELECT * FROM updates WHERE id < " . $getpost3['id'] . " ORDER BY id DESC LIMIT 0,1";
49 $getback2 = mysql_query($getback); 49 $getback2 = mysql_query($getback);
50 $getback3 = mysql_fetch_array($getback2); 50 $getback3 = mysql_fetch_array($getback2);
51 if (isset($getback3['title'])) 51 if (isset($getback3['title']))
@@ -54,7 +54,7 @@ if (isset($_GET['post']))
54 'TITLE' => $getback3['title'])); 54 'TITLE' => $getback3['title']));
55 } 55 }
56 56
57 $getnext = "SELECT * FROM updates WHERE id = " . ($getpost3['id']+1); 57 $getnext = "SELECT * FROM updates WHERE id > " . $getpost3['id'] . " ORDER BY id ASC LIMIT 0,1";
58 $getnext2 = mysql_query($getnext); 58 $getnext2 = mysql_query($getnext);
59 $getnext3 = mysql_fetch_array($getnext2); 59 $getnext3 = mysql_fetch_array($getnext2);
60 if (isset($getnext3['title'])) 60 if (isset($getnext3['title']))