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
h 03, 2003 9:58 AM
Subject: [PHP] Automatic Table Creation
I have a mysql table containing about 100 record, alphabetically ordered.
How would i display them in browser in a 3 columns, doesn't matter how long
the rows is as the number of records will grow in the database table.
the records s
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
I have a mysql table containing about 100 record, alphabetically ordered.
How would i display them in browser in a 3 columns, doesn't matter how long the rows
is as the number of records will grow in the database table.
the records should be in alphabetically order, for example:
aaa bbba
4 matches
Mail list logo