Re: form problem (?)
- From: Stefan Rybacki <stefan.rybacki@xxxxxxx>
- Date: Tue, 26 Jul 2005 10:19:05 +0200
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");
.
- References:
- form problem (?)
- From: Konrad Tuszkowski
- Re: form problem (?)
- From: Arjen
- form problem (?)
- Prev by Date: download script
- Next by Date: Re: download script
- Previous by thread: Re: form problem (?)
- Next by thread: Re: form problem (?)
- Index(es):