How can I implement the feature similar to Zhongguancun category search in my recent project?
Reply to discussion (solution)
This may ask how to design a database... is there any problem?
Php + ajax
Assemble parameters, make styles, and display the interface on the server.
This may ask how to design a database... is there any problem?
The database table has been created, and the display effect is the same as this. Now the question is how to obtain the value of each category and then query it in the database.
Assemble parameters, make styles, and display the interface on the server.
How can I use ajax for assembly? can I give an example?
You have to give the sample data, or you cannot make it clear.
For example, you cannot use it again.
I wrote it using TP, template page
Server? Location? : Unlimited
? Photo? Grid: unlimited
- Personal Insurance?
- ? Thing protection?
- Cast? Type protection?
- ? Pay-as-you-go?
??? Domain: unlimited
- ?? Management
- ?? Management
- Why? Configuration
Warranty? Company: unlimited
The following is the data returned by ajax.
Some categories are written to death, and some are read from the database. my problem now is how to obtain the classification parameters, then upload them to the Action to query data, then return to the template page.
Didn't the category be read from the database? What are the problems with obtaining parameters?
If the data is transmitted through a url, splice the data according to the rules and parse the url to obtain the corresponding data. If the data is available, the display will not be a problem.