phpbar.de logo

Mailinglisten-Archive

[php] while mysql_fetch_array

[php] while mysql_fetch_array

Marco Kaiser php_(at)_phpcenter.de
Wed, 2 Jan 2002 15:46:54 +0100


> $result = mysql_query("SELECT photo_x FROM photo WHERE id='1");
> $b=0;
> while($photo_ende = mysql_num_rows($result)){
> $b++;
> echo "$b"; // Die aktuelle Nummer
> echo "$photoende[0]"; // Das aktuelle Foto
> }
Würg...

$rs = mysql_query("...");
while ($photo_ende = mysql_fetch_array($rs, MYSQL_ASSOC)) {
	var_dump($photo_ende);
}

das wäre besser. :)


php::bar PHP Wiki   -   Listenarchive