If I have about 250 entries with 6 columns in a MySQL database, and I want a “dynamic” filtering to show entries depending on the checkboxes checked off, is it better to retrieve them all and then hide some results via jquery or do a PHP/MySQL query every time a checkbox is checked?
Thank you very much!
Well there is 2 questions one must answer before proceeding!
Will the end-time user filter the view a few times (like say they reload the results 2 – 7 times)?
Will the behind-the-scenes data change regularly?
Case 1: Yes to filters, no to changing data
Case 2: Yes to filters, yes to changing data.
WHERE) and retrieve the data and update the display via ajax/javascriptCase 3: No to filters, Yes to changing data.
Case 4: No and No