There are many infinite classification methods on the internet. to create a shopping website, we need many sub-classes. I don't know which one is the best? -Php Tutorial

Source: Internet
Author: User
There are many infinite classification methods on the internet. to create a shopping website, we need many sub-classes. I don't know which one is the best? Unlimited classification which is the best?

Rt; please help us to introduce it. recursion is definitely not needed. I still have an infinite array classification method and nested set model. that's good. I will post a tutorial by the way. thank you!


Reply to discussion (solution)

Use PHP templates

I think we can use the frontend. Use php to read all mysql classification tables and store them in a memory of html.
Get it using Jquery ajax and then perform unlimited classification.

Util = {'data': ''}; Util. postJSON = function (URL) {$. ajax ({type: "POST", url: URL, dataType: "JSON", data: d, success: function (d) {return d ;}, error: function (d) {console. log (d); if (typeof e = 'function') e (d) ;}}) ;}$ (function () {Util. data = Util. postJSON ('http: // www.abc.com/api.php? C = Category & a = list ');});

Reference
Http://blog.csdn.net/zy205817/article/details/14230853

Reference
Http://blog.csdn.net/zy205817/article/details/14230853
You have used your solution. thank you.

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.