I am facing a problem in retrieving data from db in a desired format. I have used PHP MYSQL. I am able to retrieve the records using while($row=mysql_fetch_array($result)); and so on... but not in a format as I want.
suppose, from db I am getting 10 records as 1 to 10 vertically, but I want the following format using table.
1 2 3 4
5 6 7 8
9 10
Note: No of records are dynamic in nature, and I want 4 columns in each row.
Please help me out. Thanks in advance.