summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rwxr-xr-xpages/season.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/pages/season.php b/pages/season.php index 6b45a27..5fa7cef 100755 --- a/pages/season.php +++ b/pages/season.php
@@ -16,7 +16,13 @@ if (isset($getseason3) && ($getseason3['season_id'] == $_GET['season']))
16 <UL ID="archive"> 16 <UL ID="archive">
17<?php 17<?php
18 18
19$getcomics = "SELECT * FROM comics WHERE status = \"publish\" AND comic_id >= " . $getseason3['first_comic_id'] . " AND comic_id <= " . $getseason3['last_comic_id'] . " ORDER BY comic_id ASC"; 19if (!is_null($getseasons3['last_comic_id']))
20{
21 $getcomics = "SELECT * FROM comics WHERE status = \"publish\" AND comic_id >= " . $getseason3['first_comic_id'] . " AND comic_id <= " . $getseason3['last_comic_id'] . " ORDER BY comic_id ASC";
22} else {
23 $getcomics = "SELECT * FROM comics WHERE status = \"publish\" AND comic_id >= " . $getseason3['first_comic_id'] . " ORDER BY comic_id ASC";
24}
25
20$getcomics2 = mysql_query($getcomics); 26$getcomics2 = mysql_query($getcomics);
21while ($getcomics3 = mysql_fetch_array($getcomics2)) 27while ($getcomics3 = mysql_fetch_array($getcomics2))
22{ 28{