gangsterwanster1 Posted June 7, 2009 Share Posted June 7, 2009 Well my php script gets a couple values that were inputted and puts into a table on the page. Is there anyway to filter the results? Column 1 - Column 2 - Column3 Ex293 - rweker - regearger Ex291 - rgergreg - ergregerg Ex293 -ergjergr -ergergrgf So basically i want to have the option to filter out Ex291 row and keep everything else. Quote Link to comment https://forums.phpfreaks.com/topic/161296-filter-table/ Share on other sites More sharing options...
Daniel0 Posted June 7, 2009 Share Posted June 7, 2009 A regular if statement within the loop should do the trick. Quote Link to comment https://forums.phpfreaks.com/topic/161296-filter-table/#findComment-851167 Share on other sites More sharing options...
Ken2k7 Posted June 8, 2009 Share Posted June 8, 2009 Define filter. You can put the exclusion in a WHERE clause of your SQL. Quote Link to comment https://forums.phpfreaks.com/topic/161296-filter-table/#findComment-851261 Share on other sites More sharing options...
radi8 Posted June 8, 2009 Share Posted June 8, 2009 or use the sql order by Quote Link to comment https://forums.phpfreaks.com/topic/161296-filter-table/#findComment-851281 Share on other sites More sharing options...
Ken2k7 Posted June 8, 2009 Share Posted June 8, 2009 or use the sql order by How would that work? Quote Link to comment https://forums.phpfreaks.com/topic/161296-filter-table/#findComment-851286 Share on other sites More sharing options...
gevans Posted June 8, 2009 Share Posted June 8, 2009 I may be wrong, but I've seen no mention of an sql query as of yet. How do you guys know he's calling this data from a db? Quote Link to comment https://forums.phpfreaks.com/topic/161296-filter-table/#findComment-851288 Share on other sites More sharing options...
Ken2k7 Posted June 8, 2009 Share Posted June 8, 2009 I don't. Daniel0 already covered the other case. I'm just covering other cases. No need to duplicate a post saying the same thing. Quote Link to comment https://forums.phpfreaks.com/topic/161296-filter-table/#findComment-851351 Share on other sites More sharing options...
gangsterwanster1 Posted July 2, 2009 Author Share Posted July 2, 2009 Anyway to do this without using a database? Quote Link to comment https://forums.phpfreaks.com/topic/161296-filter-table/#findComment-867472 Share on other sites More sharing options...
Daniel0 Posted July 2, 2009 Share Posted July 2, 2009 Yeah, see my first post. Quote Link to comment https://forums.phpfreaks.com/topic/161296-filter-table/#findComment-867624 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.