cjbeck71081 Posted September 10, 2008 Share Posted September 10, 2008 I was wondering what is best practice when you have to sort a column of data. I have a very simple property listing that has fields like, Company name, address, zoning code, square footage, etc. I would like to order them ascending and descending when someone clicks the head of the column. The second questioon i have is, what is best practice when searching a database for entries for something like a property listing. If i wanted to search the DB for all properties that are 2 family... or under 300k, what might be my best approach(coding the URL?). Or what if i wanted properties that met both... single families for 250k. Anyway i have been doing this for a while, im sure i could hack it, but i figured i would see what "Best practice was for this" Thanks Chris Link to comment https://forums.phpfreaks.com/topic/123680-property-listing-search-as-well-as-row-sort/ Share on other sites More sharing options...
fenway Posted September 11, 2008 Share Posted September 11, 2008 Well, for your first question, you can either do it client-side (JS) or server-side (say, via AJAX). As for the DB side of things, I'm not sure why you want to "code the URL". Link to comment https://forums.phpfreaks.com/topic/123680-property-listing-search-as-well-as-row-sort/#findComment-638997 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.