Hi!
I wonder how i can pass the the number of results from this loop:
$a = 0;
$a1 = 0;
$res4 = mysql_query("SELECT * FROM table ORDER BY id DESC LIMIT ".($a).",100",$db);
if($info4 = mysql_fetch_array($res4)) {
$i = $a1;
if ($i>0)$i--;
do {
$i++;
$dyr[$i] = $info4["navn"];
}
while ($info4 = mysql_fetch_array($res4));
}
to this function:
for ( $i = 0; $i< $number_of_results; $i++) {
echo "$dyr[$i]<br>";
}
thanks!