[PHP] Re: Table Making - All done!

2002-07-11 Thread Jason Soza
= 0; $j < $RowsPerCol; $j++) { $Row = mysql_fetch_array($Results); if (isset($Row)) print $Row[0] . ""; } print ""; } print ""; -Original Message- From: Jason Soza [mailto:[EMAIL

RE: [PHP] Re: Table Making

2002-07-11 Thread Lazor, Ed
mysql_fetch_array($Results); if (isset($Row)) print $Row[0] . ""; } print ""; } print ""; -Original Message- From: Jason Soza [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 11, 2002 3:18 PM To: Lazor, Ed Cc: [EMA

Re: [PHP] Re: Table Making

2002-07-11 Thread Kevin Stone
Kevin - Original Message - From: "Jason Soza" <[EMAIL PROTECTED]> To: "Michael Davey" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Thursday, July 11, 2002 3:43 PM Subject: Re: [PHP] Re: Table Making > I really wish I was at home right now so I could test

Re: [PHP] Re: Table Making

2002-07-11 Thread Jason Soza
ific date. I'm hoping the code I posted will create something like: 1941 1942 1943 ... Make sense? Jason Soza - Original Message - From: "Lazor, Ed" <[EMAIL PROTECTED]> Date: Thursday, July 11, 2002 2:08 pm Subject: RE: [PHP] Re

RE: [PHP] Re: Table Making

2002-07-11 Thread Lazor, Ed
Will this work for you? $numFields = mysql_num_fields($Results); print ""; while ($Row = mysql_fetch_array($Results)) { print ""; for ($i = 0; $ < $numFields; $i++) print "".$Row[$i]."";

Re: [PHP] Re: Table Making

2002-07-11 Thread Jason Soza
echo ""\n; //close secondary table at 10 cells } echo "\n"; //close main row/cell } echo "\n"; //close main table Jason Soza - Original Message - From: "Michael Davey" <[EMAIL PROTECTED]> Date: Thursday, July 11,

[PHP] Re: Table Making

2002-07-11 Thread Michael Davey
How about working out the length of the column (by dividing the number of rows by the number of cols you want), dump your results into an array and using the col length as an offset to pick through the resulting table? // $data is an array of results $rows = count ($data) $row_len = round ($rows