Well it seems what you're trying to do is to set as square a table as you
can.  So, take your number of entries and square root it.  Now round it up.
Now divide the number of entries by that number and again round up.  Now use
these two numbers to make the table.  Should be pretty straighforward...

- seb

-----Original Message-----
From: Ian Grant [mailto:[EMAIL PROTECTED]]
Sent: 25 July 2001 17:28
To: [EMAIL PROTECTED]
Subject: [PHP-DB] Re: Making a new row in HTML tables


Yeah, but if I had 31,
I'd want 6x5 and then 1 over, or something....


Hugh Bothwell <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Umm... 31 entries, 1 x 31...
>
> You might be better to choose a standard width and pad the last row with
> empty cells.
>
> "Ian Grant" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > Hi,
> >
> > Can anyone help me with this - I have a database of people, that I want
to
> > print into an HTML table - how can I make the table wrap into an equal
> > number of rows.
> > i.e. if there are 4 entries, a 2x2 table, 6 a 2x3, 8 a 2x4, 9 a 3x3,
etc.
>
>
>



--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]



-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to