Re: Tree Display

From: Date: Fri, 27 Jul 2001 23:25:19 +0000
Subject: Re: Tree Display
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-10850@lists.php.net to get a copy of this message
"Sharif Islam" <mislam@students.uiuc.edu> wrote in message news:Pine.GSO.4.31.0107271608350.4794-100000@ux10.cso.uiuc.edu... > > I am still trying to figure out how to do it. I want to display my result > from the data base in tree/menu like system. Could you give us your SELECT statement and one row of returned data? > So the result page will look like this: > > +Result1 (you click this , it will expand) > -Item1 (you click this and get more info) > -Item2 > -Item3 The expanding tree bit is done in JavaScript, see http://kmserv.com/testbed/tree/smith_jstree.html for a simple tutorial. What you need to do is use PHP to write the JavaScript to create the tree according to your query results.

« previous php.db (#10850) next »