RE: [PHP-DB] MySQL Array
| From: | USA) | Date: | Thu, 05 Dec 2002 20:05:11 +0000 |
| Subject: | RE: [PHP-DB] MySQL Array | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-23849@lists.php.net to get a copy of this message | ||
while ($ar = mysql_fetch_array($rs))
echo "<tr><td>".
$ar['field1']."</td><td>".$ar['field2']."</td></tr>";
Make sense?
-----Original Message-----
From: Art Chevalier [mailto:arthurc@scn.spawar.navy.mil]
Sent: Thursday, December 05, 2002 12:44 PM
To: php-db@lists.php.net
Subject: [PHP-DB] MySQL Array
Hello,
I am pulling one column out of a MySQL table in an array. I want to place
each element into a HTML table 4 rows across. I am currently doing this
with the mysql_fetch_array() function. How can I pull out 4 array elements
in one pass through a while loop?
Thanks
Art Chevalier
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php