diff options
Diffstat (limited to 'pages/season.php')
-rwxr-xr-x | pages/season.php | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/pages/season.php b/pages/season.php new file mode 100755 index 0000000..6b45a27 --- /dev/null +++ b/pages/season.php | |||
@@ -0,0 +1,34 @@ | |||
1 | <?php | ||
2 | |||
3 | if (is_numeric($_GET['season'])) | ||
4 | { | ||
5 | $getseason = "SELECT * FROM seasons WHERE season_id = " . $_GET['season']; | ||
6 | $getseason2 = mysql_query($getseason); | ||
7 | $getseason3 = mysql_fetch_array($getseason2); | ||
8 | } | ||
9 | |||
10 | if (isset($getseason3) && ($getseason3['season_id'] == $_GET['season'])) | ||
11 | { | ||
12 | |||
13 | ?> | ||
14 | <H1>Archive for Season <?php echo($_GET['season']); ?></H1> | ||
15 | |||
16 | <UL ID="archive"> | ||
17 | <?php | ||
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"; | ||
20 | $getcomics2 = mysql_query($getcomics); | ||
21 | while ($getcomics3 = mysql_fetch_array($getcomics2)) | ||
22 | { | ||
23 | ?> <LI><A HREF="/comic<?php echo($getcomics3['comic_id']); ?>.htm"><?php echo($getcomics3['title']); ?></A></LI> | ||
24 | <?php | ||
25 | } | ||
26 | |||
27 | ?> </UL> | ||
28 | <?php | ||
29 | |||
30 | } else { | ||
31 | include('pages/comic.php'); | ||
32 | } | ||
33 | |||
34 | ?> | ||