PHP Classes

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

Recommend this page to a friend!
  Info   Screenshots   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStar 57%Total: 2,369 This week: 1All time: 1,649 This week: 42Up
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

Screenshots (1)  
  • parent_child_unlimited_levels.png
  Files folder image Files (4)  
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.

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:2,369
This week:1
All time:1,649
This week:42Up
 User Ratings  
 
 All time
Utility:83%StarStarStarStarStar
Consistency:83%StarStarStarStarStar
Documentation:-
Examples:75%StarStarStarStar
Tests:-
Videos:-
Overall:57%StarStarStar
Rank:1656