PHP Classes

Parent child tree with unlimited levels: Retrieve child elements from MySQL parent records

Recommend this page to a friend!
  Info   Screenshots Screenshots   View files View files (3)   DownloadInstall with Composer Download .zip   Reputation   Support forum (2)   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStar 57%Total: 2,368 All time: 1,651 This week: 78Up
Version Licenses PHP version Categories
parent-child-tree 1.0.0Free For Educatio...5.0PHP 5, Databases
Description 

Author

This class can be used to retrieve child elements from MySQL parent records.

It can query a MySQL table that has records of items that have parent records.

The class can return all children items of a given parent record.

Picture of mrinal nandi
Name: mrinal nandi <contact>
Classes: 1 package by
Country: India India
Age: 41
All time rank: 131173 in India India
Week rank: 234 Up21 in India India Up

Screenshots  
  • parent_child_unlimited_levels.png
  Files folder image Files  
File Role Description
Plain text file example.php Example Example, ParentChild class to populate a tree/list of items based on the parent child relationships among them with unlimited level of hierarchy. The test database schema with some test data are also given at the bottom of this file as well as in another file with the package called "test_database.sql". Any one of them can be used to test the code.
Plain text file ParentChild.php Class This is the main class file made for populating a tree/list of items based on the parent child relationships among them with unlimited level of hierarchy .
Plain text file test_database.sql Data The test database schema with some test data are given in this file, as well as at the bottom of "example.php" file. Any one of them can be used to test the code.

 Version Control Unique User Downloads Download Rankings  
 0%
Total:2,368
This week:0
All time:1,651
This week:78Up
 User Ratings  
 
 All time
Utility:83%StarStarStarStarStar
Consistency:83%StarStarStarStarStar
Documentation:-
Examples:75%StarStarStarStar
Tests:-
Videos:-
Overall:57%StarStarStar
Rank:1653