/* Are there any reviews? */
if ($total_reviews == 0) {
print ("Sorry - there are no reviews matching your query");
} else {
/* There are! Go nuts! */
print ("
");
while (list($movie_id, $Title) = $reviewresult->fetch_row()) {
if ($d == (round($displaylimit / 2))) {
print '
';
}
$Title = htmlentities(stripslashes($Title));
print<<$Title\n
END;
$counter = $counter + 1;
$d = $d + 1;
}
print ("
");
}
$d = $id + $displaylimit;
?>
$d = $id + $displaylimit;
$totaldisplayed = $displaylimit;
/* Do we have any reviews before where we're at? */
if ($d > $totaldisplayed) {
if (($cid == "ALL") || ($cid == "")) {
$prev = $d - $totaldisplayed;
print "
<< Previous $totaldisplayed Reviews";
} else {
$prev = $d - $totaldisplayed;
print "
<< Previous $totaldisplayed Reviews";
}
}
if (($d > $totaldisplayed) && (($total_reviews - $counter) > 0)) {
print " | ";
}
/* Do we have any more pages of reviews? */
if (($total_reviews - $counter) > 0) {
if (($cid == "ALL") || ($cid == "")) {
print "
Next $totaldisplayed Reviews >>\n";
} else {
print "
Next $totaldisplayed Reviews >>\n";
}
}
?>