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
2 ответов
+ 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)
+ 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.