News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Rashaud Teague's Blog:
Basic Data Trees
August 21, 2009 @ 11:41:08

Rashaud Teague has posted a new tutorial to his blog about data trees and parent/child relationships in PHP applications:

Displaying data in data trees showing parent/child relationships can be important to your application for when users are looking for data. [...] Here I will be showing you (most likely a beginner programmer) how to display data from a database (MySQL) using PHP. In the this example I'm using the data from Maris SimpleDocu, a "simple" documentation system.

His simple table holds data for a series of pages linked by a "parent" key column. Back in the PHP he uses a recursive function to pull in a subset of the data. The end result is output showing the levels of the data, spaced out by dashes.

0 comments voice your opinion now!
data tree simpledocu tutorial


blog comments powered by Disqus

Similar Posts

Stoyan Stefanov's Blog: Simultaneous HTTP requests in PHP with cURL

Juozas Kaziukenas' Blog: Passing data from PHP to Silverlight

Matthew Weier O'Phinney's Blog: Getting started writing ZF2 modules

Deepak Radhakrishnan\'s Blog: Configuring Apache - PHP - MySQL on Windows (WAMP Configuration)

NETTUTS.com: Create a Slick Flickr Gallery with SimplePie


Community Events





Don't see your event here?
Let us know!


api install laravel configure language library release testing podcast interview developer wordpress application threedevsandamaybe introduction series code list community unittest

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework