Posted by Arjen on 07/26/05 01:55
> $wiersze=mysql_num_rows($result);
> for ($i=0;$i<$wiersze;$i++) {$wiersz = mysql_fetch_array($result);}
why are you fetching the array $wiersze times ??
It's 01:00 here so I hope im correct :-p
try this:
$wiersze=mysql_num_rows($result);
$wiersz = mysql_fetch_array($result);
for ($i=0;$i<$wiersze;$i++)
{
// do stuff
print_r($wiersze[$i]);
}
Btw I like this .... im keeping this one !!
$result = mysql_query($query) or die ("Zapytanie zakonczone niepowodzeniem");
[Back to original message]
|