Let's see how this works.

Source: Internet
Author: User
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

  • {$ Area_list}

? Photo? Grid: unlimited
  • Personal Insurance?
  • ? Thing protection?
  • Cast? Type protection?
  • ? Pay-as-you-go?

??? Domain: unlimited
  • ?? Management
  • ?? Management
  • Why? Configuration

Warranty? Company: unlimited
  • {$ Company_list.cname}


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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.