PEAR::Tree limiting fetched fields

From: Date: Tue, 04 Feb 2003 11:44:29 +0000
Subject: PEAR::Tree limiting fetched fields
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-3593@lists.php.net to get a copy of this message
Hi all, Below is my table structure. It is a simple structure to store an online book. Each section of the book has subsections, which also have subsections etc etc. PEAR::Tree would be excellent for this, but I don't need to fetch the actual contents of the section when generating the tree (it would only slow stings down when the table grows bigger) so my question is: Can I tell the Tree object to only select sectionID, ParentID and title and not all fields?? Thanks, Jeroen # # Table structure for table sections # CREATE TABLE sections ( sectionID smallint(5) unsigned NOT NULL auto_increment, parentID smallint(6) NOT NULL default '0', title varchar(255) default 'no title', content longtext, PRIMARY KEY (sectionID), KEY title (title) ) TYPE=MyISAM;

« previous php.pear.general (#3593) next »