Justtechjobs.com Find a programming school near you






Online Campus Both


php-db | 2001072

[PHP-DB] Re: Tree Display From: Hugh Bothwell (hugh_bothwell <email protected>)
Date: 07/27/01

"Sharif Islam" <mislam <email protected>> wrote in message
news:Pine.GSO.4.31.0107271608350.4794-100000 <email protected>
>
> 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.

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-db-unsubscribe <email protected>
For additional commands, e-mail: php-db-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>