RE: [PHP-DB] outline .... need help

From: Date: Thu, 27 Sep 2001 22:29:00 +0000
Subject: RE: [PHP-DB] outline .... need help
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-12805@lists.php.net to get a copy of this message
The easiest way would be to store the outline in a nested associative array, then serialize() it into the database or a text file. -----Original Message----- From: Larry "RedCobra" Linthicum [mailto:redcobra@thevision.net] Sent: Thursday, September 27, 2001 6:13 PM To: php-db@lists.php.net Subject: [PHP-DB] outline .... need help I want to store, retrieve, and print out an "outline" dynamically I. Heading A. Subheading 1. detail 2. second detail B. Second Subheading II Second Heading III Third Heading A.sub B Sub etc etc I do not know, in advance, how many entries there will b, in any given place. And, it must be possible to ADD new entries, AND have it print in the correct order I have a fair amount of experience with PHP / MySql for simpler applications, but every way I can think of to do this seems much more complicated than seems right. I'm hoping some of you have ideas on how to set up the tables, and how to retrieve and print the data. Links to examples or tutorials will be greatly appreciated .... I've searched the sites I know of, but found little that addresses my problems. My poor head is a buzz with questions, <G> For instance, what kind of sort field can I use that will allow a "heading" to be inserted between "I" and "II " and then displayed in the correct order? Or, is there a way to retrieve ALL the "detail" level entries with one query, then sort them and print them un the right heading or will I have to do a long series of queries ... I'm nearly certain I'm making it more difficult than it is.... thanks for your help and suggestions -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net For additional commands, e-mail: php-db-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.db (#12805) next »