blob: 74568a00ab521da53fd18d3dda2e61a2a40d06bc (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
<?php
if (is_numeric($_GET['season']))
{
$getseason = "SELECT * FROM seasons WHERE season_id = " . $_GET['season'];
$getseason2 = mysql_query($getseason);
$getseason3 = mysql_fetch_array($getseason2);
}
if (isset($getseason3) && ($getseason3['season_id'] == $_GET['season']))
{
?>
<H1>Archive for Season <?php echo($_GET['season']); ?></H1>
<UL ID="archive">
<?php
if (!is_null($getseason3['last_comic_id']))
{
$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";
} else {
$getcomics = "SELECT * FROM comics WHERE status = \"publish\" AND comic_id >= " . $getseason3['first_comic_id'] . " ORDER BY comic_id ASC";
}
$getcomics2 = mysql_query($getcomics);
while ($getcomics3 = mysql_fetch_array($getcomics2))
{
?> <LI><A HREF="/comic<?php echo($getcomics3['comic_id']); ?>.htm"><?php echo($getcomics3['title']); ?></A></LI>
<?php
}
?> </UL>
<?php
} else {
include('pages/comic.php');
}
?>
|