Php multi-keyword smart query solution

Source: Internet
Author: User
Php smart query for multiple keywords & nbsp; requirements: When I enter website & nbsp;, website Construction & nbsp; website Production & nbsp; Website Design & nbsp; when I select Sichuan (or Beijing & nbsp; Shanghai and other national place names) & nbsp;, the Chengdu website Construction & nbsp; you can intelligently prompt the production of multiple place names such as Chengdu website & nbsp; for example, which is the best website in Sichuan? & nbsp; intelligent query of multiple keywords of php built on Sichuan Chengdu website
The demand for help is as follows:
When I enter a website, multiple similar keywords such as website construction, website creation, and website design appear.

When I select Sichuan (or Beijing, Shanghai, and other Chinese place names), there will be multiple place names such as Chengdu website construction Chengdu website production.

You can intelligently prompt similar statements, such as the Sichuan website construction company, which is good for Sichuan Chengdu website construction company, and which is the best.

Thank you for thinking.
------ Solution --------------------
We need to prepare some data-related tables.
For example, in Sichuan, the region can be connected to Chengdu.
------ Solution --------------------
Do you want to group words and make sentences? Or want to query?
------ Solution --------------------
Store the heap of words into the database. you can add a category to manage and edit pages in the background.
The event is triggered when the current input text (such as Chengdu) is used. ajax is submitted to the background. the SQL statement uses like '% Chengdu %' to find the associated words and outputs a json package to the foreground.
If you want to input the Sichuan prompt "Chengdu XXX", add more fields for the associated text, and then enter the fields at the front-end.
For example, if I enter a word "Chengdu website" to create another input box, I can enter "Chengdu Sichuan network construction" and other extension words. then I will check two like words together or connect them to Europe.

------ Solution --------------------
Reference:
Quote: reference:

Do you want to group words and make sentences? Or want to query?
Is to make these sentences into the core complex words.

What is the purpose? Are you writing an article or serving as a gunman?
------ Solution --------------------
Isn't your sentence composed of the six words?
Put them in the array respectively, and fill in an empty element
In a 6-layer nested loop
The only constraint is that simple and complex core words cannot be empty at the same time.
------ Solution --------------------
Reference:
Which Website production company in Chengdu charges the cheapest?
Which Website production company in Chengdu makes the best website. for example, if such a Chengdu place name can be changed to website production, you can also change the following sentence: The company charges the cheapest and the company's website is best. You mean to store them into the database and then does the local and company make such a separate warehouse and then use ajax to submit it for connection?


After carefully reading the reply from the third floor, I found that my original understanding may be wrong. ignore it...
I didn't understand your requirements. how can I explain it to xu?
------ Solution --------------------
Change the browser,
------ Solution --------------------
Too many nesting.
------ Solution --------------------
Coreseek + php

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.