diff options
author | Star Rauchenberger <fefferburbia@gmail.com> | 2009-06-17 15:04:14 -0400 |
---|---|---|
committer | Star Rauchenberger <fefferburbia@gmail.com> | 2009-06-17 15:04:14 -0400 |
commit | d87d85235d2fa2a3e2bc97344377fcc37f88fa9c (patch) | |
tree | d83ecd86dc8abecccae6674a7bf6daa0e3454368 /pages/season.php | |
parent | 223b7f80580a992d79251215a2de4eedcc69736c (diff) | |
download | pillowcase-d87d85235d2fa2a3e2bc97344377fcc37f88fa9c.tar.gz pillowcase-d87d85235d2fa2a3e2bc97344377fcc37f88fa9c.tar.bz2 pillowcase-d87d85235d2fa2a3e2bc97344377fcc37f88fa9c.zip |
Added season information to archives
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 | ?> | ||