Re: form problem (?)



Arjen wrote:
$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]);
}


Nope, won't work, because mysql_fetch_array only returns one row at a time or false if there is no more row.

Regards
Stefan




Btw I like this .... im keeping this one !!
$result = mysql_query($query) or die ("Zapytanie zakonczone niepowodzeniem");


.