0
I have a table of properties divided into several categories and I want to list them on my PHP page. The detail is that I wish that in one region of the page be listed the houses, in another the apartments and so on. In other situations I made a select for each category, but I think this is not good in terms of performance. So what would be the best way to do it?
I could post your code to the community and try to help you in the best way. In terms of performance, there is both the form of select, where as you select what you want what will be displayed changes, and also through checkbox that when checked changes what will be displayed attending the need. So each query would have a condition and display a result
– Victor
You can separate bringing the type of property in the
query
, and making aif
inside your code. Put as this your code to help you.– Roberto de Campos
It is still in project, but I intend to do a <ul> listing the properties whose category is "home" in the database, in another area of the page, another <ul> listing the properties whose category is "apartment", and so on.
– Josias Bueno