joshgarrod Posted June 10, 2009 Share Posted June 10, 2009 Hi, I have a directory full of companies. I want to display them all at once, but break them down into categories. They are all in one table and category is one of my fields which is selected at point of adding to table. I don't know quite how to code it. It would look something like this: Housing _____________________ Company 1 Company 2 Company 3 Etc Building _____________________ Company 1 Company 2 Company 3 Etc And so on .... Thanks in advance Quote Link to comment https://forums.phpfreaks.com/topic/161671-solved-list-all-records-but-seperate-list-by-one-field/ Share on other sites More sharing options...
joshgarrod Posted June 10, 2009 Author Share Posted June 10, 2009 This topic has been moved?It is a PHP question as I am talking about when I display the information on the pge I want to show all of the companies that are part of the "Housing" be under a category called "housing" and complete all of it in one query? Quote Link to comment https://forums.phpfreaks.com/topic/161671-solved-list-all-records-but-seperate-list-by-one-field/#findComment-853080 Share on other sites More sharing options...
Ken2k7 Posted June 11, 2009 Share Posted June 11, 2009 Are the fields stored in the database? Quote Link to comment https://forums.phpfreaks.com/topic/161671-solved-list-all-records-but-seperate-list-by-one-field/#findComment-853500 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.