Home >Backend Development >PHP Tutorial >Php implementation code for unlimited column classification reading_PHP tutorial
The idea of implementing Infinitus column classification: Get the self-increasing ID (that is, the parent ID) and then get the child ID (that is, the uid child ID) from the database. The data is as follows
id:1 uid:0 I am column 1
id:2 uid:1 I am column 2
id:3 uid:1 I am a subcategory of column 1
Display results: Is a subcategory of Column 1
I am Column 2
The following is the Php code
Copy code