Thanks Jonathan,
I'll have a go with your codes.
Thanks very much
awlad
- Original Message -
From: "Jonathan Pitcher" <[EMAIL PROTECTED]>
To: "Awlad Hussain" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Monday, March 03, 2003 4:17 PM
The easiest way would be nested tables. Your three "columns" would each have
a nested table within them where you loop through 1/3 of the results. Some
simple math functions and the result of mysql_num_results() should tell you
how many to loop through in each table.
Awlad,
I would guess you are trying to create an HTML table to display the
records.
$Row = The results returned from. mysql_fetch_array().
$Total = count($Row);
$TotalInEachRow = round(($Total/3));
if (($TotalInEachRow * 3) < $Total) {
$TotalInEachRow ++; // Planning for the Remainder
3 matches
Mail list logo