displaying array data in multiple columns
Posted: Wed Jul 12, 2006 2:27 pm
I have a column in a MySQL database
company 1
company 2
company 3
company 4
company 5
...
how can I call it from the database into three colums using php:
i.e.
company 1 company 2 company 3
company 4 company 5 ...
I have been used to using the while() to call up data from different columns but this doesnt work in this instance? Any ideas on a possible solution would be greatly appreciated.
PS sorry if this has been covered before - couldn't find what I was looking for in the search.
company 1
company 2
company 3
company 4
company 5
...
how can I call it from the database into three colums using php:
i.e.
company 1 company 2 company 3
company 4 company 5 ...
I have been used to using the while() to call up data from different columns but this doesnt work in this instance? Any ideas on a possible solution would be greatly appreciated.
PS sorry if this has been covered before - couldn't find what I was looking for in the search.