0

I want to make a filter property In my website

If a man come to my website and select City than the result can show only to relate that city details (only filter that city details from my data base) which is searched by the man

14th Apr 2020, 9:59 AM
Vipul Singh
2 Answers
+ 3
Any case example? You can adjust the condition of the WHERE clause of your SQL query to only include the details related to the selected city name. And then requery to obtain the filtered result set. This approach is best being combined with utilisation of AJAX. Search the net for AJAX tutorial on how to do this 👍 (Edited)
14th Apr 2020, 10:27 AM
Ipang
+ 3
You can do it at frontend by looping over the city elements, curving whether the innerText includes the input string, and toggling display accordingly.
14th Apr 2020, 11:37 AM
Gordon
Gordon - avatar