> Basically what i want is, that on a results page, i > want that the records
You mean fields > should be placed only 5 on one line. > For example, let's say i have 100 usernames in a table > in my database. > Now on one page, i want to display all these usernames. > But i want that in one line, there should be only 5 usernames, > seperates by spaces. Like this : > user1 user2 user3 user4 user5 > user6 user7 user8 user9 user10 Use a counter while looping through the results. When counter % 5 = 0, do whatever you need to create a new line. "\n", "</tr>", whatever. Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php