\n";
while($i < $numquotes) {
printf("[%s] ",$i,($i + 1));
$i = $i + $limit;
}
echo "\n
";
echo "\n";
}
while($row = mysql_fetch_array($result)) {
$quote = $row["quote"];
$quote = htmlspecialchars($quote);
$quote = str_replace("\003","",$quote);
printf("%s: %s\n
\n",$row["channel_id"],$quote);
}
$i = 0;
if(!$limit)
$limit = $numquotes;
else {
echo "