I don't know if it is a problem. Is a classification problem. I can see that there is such a classification on a website: goods/catalog/dress/2000000000000, and the value 2 next to it represents a classification. here there is only dress (clothes) goods/catalog/d: I don't know if it is a problem.
Is a classification problem.
I see a website with such a classification.
Goods/catalog/dress/2000000000000 is a classification represented by the value 2 next to it. here we only use dress (clothes)
The value 4 after goods/catalog/dress/2004000000000 2 represents a subcategory under dress (clothes). here, only the skirt is used.
If you click a big classification, it may be 5000000000000. 7000000000000
For example
// Goods/catalog/shoes/6000000000000
/Goods/catalog/bag/5000000000000
/Goods/catalog/access/7000000000000
What I want to know is, of course, if I make a classification, I will complete a table and add a parent ID to it to create an infinite classification tree,
People are not using this method, so I would like to ask if it is better than the classification I use, or if it is such a classification, it has a special purpose for it? What are the benefits?
------ Solution --------------------
You do not know whether the table structure is the same as you. Only the url paths are different.
------ Solution --------------------
What kind of data structure is used for storage and classification depends on the cognition of things and the complexity of algorithms.
Once the data structure is determined, it is difficult to change it.
Your classification tree uses the adjacent list algorithm, which is flexible without limits. However, recursive queries are required.
His classification adopts the bitwise weighted algorithm, and the commodity classification is limited, so it is not necessary to make it so complex.
What's more, classification words can be directly located for commodities, which also facilitates the management of commodity entities.
------ Solution --------------------
You can do that too. Please take a look first. So:/goods. php? Type = 2 & pid = 1 rewrite and it becomes like this:/goods/1/2
Or learn it like that.
------ Solution --------------------
I have no clue about this problem.
Use your own method. People's things cannot be seen through a url after all.
------ Solution --------------------
You just need to configure a rewrite on your own. why do you need to imitate it.
------ Solution --------------------
Discussion
You just need to configure a rewrite on your own. why do you need to imitate it.
------ Solution --------------------
Discussion
Reference:
You just need to configure a rewrite on your own. why do you need to imitate it.
You are here again to see the beauty, the beauty has been pushed down, and I have found several communities, turned over hundreds of pages of posts, and finally found you. Let me tell you, I will move three cement cars and two bricks to the construction site early tomorrow. if I can't finish the work, I won't even give you the money I paid yesterday.
------ Solution --------------------
PHP code
$ Class = '000000'; $ ar = sscanf ($ class, "% 02 s % 02 s % 02 s"); print_r ($ ar );
------ Solution --------------------
Discussion
Reference:
Reference:
You just need to configure a rewrite on your own. why do you need to imitate it.
You are here again to see the beauty, the beauty has been pushed down, and I have found several communities, turned over hundreds of pages of posts, and finally found you. Let me tell you, I will move three cement cars and two bricks to the construction site early tomorrow. if I can't finish the work, I won't even give you the money I paid yesterday.
-,-It was followed. now I am on fire ..