PHP Classes

File: example.php

Recommend this page to a friend!
  Classes of mrinal nandi   Parent child tree with unlimited levels   example.php  
File: example.php
Role: Example script
Content type: text/plain
Description: 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.
Class: Parent child tree with unlimited levels
Retrieve child elements from MySQL parent records
Author: By
Last change: A new example code fragment is added at the bottom of the script to show the functionality of a newly added method in the main class file "ParentChild.php" called "getItemPath()" which returns the total path of a given item/node(the list of elements starting from the top level root node to the given item/node). In this test code fragment, element q (with ID 15 in the database table) is used as an example.
Date: 13 years ago
Size: 3,152 bytes

You need to be a registered user and login to get this file.

1,615,787 PHP developers registered to the PHP Classes site.
Be One of Us!

Login Immediately with your account on: