prepare("SELECT * FROM seasons WHERE season_id = ?");
$getseason->bind_param("i", $_GET['season']);
$getseason->execute();
$getseason2 = $getseason->get_result();
$getseason3 = $getseason2->fetch_assoc();
}
if (isset($getseason3) && ($getseason3['season_id'] == $_GET['season']))
{
?>
Archive for Season
prepare("SELECT * FROM comics WHERE status = \"publish\" AND comic_id >= ? AND comic_id <= ? ORDER BY comic_id ASC");
$getcomics->bind_param("ii", $getseason3["first_comic_id"], $getseason3["last_comic_id"]);
} else {
$getcomics = $mysql_conn->prepare("SELECT * FROM comics WHERE status = \"publish\" AND comic_id >= ? ORDER BY comic_id ASC");
$getcomics->bind_param("i", $getseason3["first_comic_id"]);
}
$getcomics->execute();
$getcomics2 = $getcomics->get_result();
foreach ($getcomics2 as $getcomics3)
{
?>