Browse recommendations

"; if ($show) { $query = "SELECT * FROM slashrecs_series WHERE tipo LIKE '%$show%' ORDER by serie"; $total_recs = total_where("slashrecs_series", "tipo LIKE '%$show%'"); switch ($show) { case movie: $tipo_print = "Movies"; break; case 'tv serie': $tipo_print = "TV Series"; break; case 'book': $tipo_print = "Books"; break; case 'comics/animation': $tipo_print = "Comics/Animation"; break; case 'manga/anime/videogames': $tipo_print = "Manga/Anime/Videogames"; break; case original: $tipo_print = "Original"; break; } $navbar = "

Showing: [ ".$tipo_print." ]

\n

Show All | Show Only: [ Movies ] [ TV Series ] [ Books ] [ Comics & Animation ] [ Manga/Anime/Videogames ] [ Original ]

"; } else { $total_recs = total(slashrecs_series); $query = "SELECT * FROM slashrecs_series ORDER by serie"; $navbar = "

Showing: [ All ]

\n

Show Only: [ Movies ] [ TV Series ] [ Books ] [ Comics & Animation ] [ Manga/Anime/Videogames ] [ Original ]

"; } echo $navbar; $tercio = $total_recs / 3; $tercio2 = round($tercio); $i = 0; $y = 0; $noaug = 0; $result = mysql_query($query) or die("La Consulta SQL ha fallado!!"); echo "\n"; echo "\n\n\n
\n"; echo "\n"; while ($series = mysql_fetch_array($result)) { if ($series['token']) { $token = $series['token']; } else { $token = $series['serie']; } $token = str_replace(" ", "+", $token); if (!(1&$y)) { $span_class = "class=\"highlight\""; } else { $span_class = ""; } echo "\n\n"; if ($i == $tercio2) { echo "
".$series['serie']."
\n
\n"; echo "\n"; $i = 0; $y = 0; $noaug = 1; } if ($noaug != 1) { $i++; $y++; } else { $noaug = 0; } } echo "
\n
\n"; include("includes/footer.php"); ?>