I am trying to display MySQL query results dynamically in a table. Based on the query, the table will have a maximum of 3 columns and 15 rows. I would like to have the results display as follows:
Record 1 Record 16 Record 31
Record 2 Record 17 Record 32
Record 15 Record 30 Record 45
If the query returns less than 16 records, everything should display in the first column; if more than 15 but less than 31 - 2 columns, et al.
I am fairly new to PHP and am trying to learn all I can as I go along. Any books, websites, or online classes you can suggest to increase my knowledge of PHP would be greatly appreciated.
Thanks,
Deb