function links_of($name,$q,$limits){
echo "<li>$name ";
foreach($limits as $l) {
- $q1 = str_replace(urlencode("***"), " LIMIT 0,$l;", $q);
+ $q1 = str_replace(urlencode("***"), " LIMIT 0,$l", $q);
echo "<a href=\"showquery.php?query=$q1;\">" .
minus1_to_all($l) . "</a> ";
}