Why don't you post the actual data you are pulling FROM the Db.. then
show HOW you want it formatted.

Might be better for us to give you a solution or something.

Aaron

-----Original Message-----
From: Art Chevalier [mailto:[EMAIL PROTECTED]] 
Sent: December 5, 2002 3:21 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP-DB] MySQL Array

Yes that makes sense, but it is pretty much the same thing I was doing
and
it's producing the same results.  Its basically putting the first
element in
all 4 table cells.  The thing is...I am only selecting from one field.
Im
trying to get the 4 elements of the column with each pass.  So in
essence I
am trying to get the pointer to move down the array 4 positions within
one
pass through the loop.  If I had any kind of logicl skills I probably
could
get it:)

Art

"Ryan Jameson" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
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:[EMAIL PROTECTED]]
Sent: Thursday, December 05, 2002 12:44 PM
To: [EMAIL PROTECTED]
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



-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to