note 5727 deleted from mysql_fetch_row by danbeck

From: Date: Thu, 07 Sep 2000 15:50:46 +0000
Subject: note 5727 deleted from mysql_fetch_row by danbeck
Groups: php.notes 
Request: Send a blank email to php-notes+get-4388@lists.php.net to get a copy of this message
mysql_fetch_row, as its name indicates only fetches a row, and your calls: >>$sp_frame_names[0] 1: $sp_frame_names[1] << would get various columns (if there were) from a same row. To get your three rows, you need a while loop like: $x=0; while (mysql_fetch_row($res)) {echo $x."&nbsp".$sp_frame_names[0] ."<br>";$x++;}

« previous php.notes (#4388) next »