It's a bit tricky to explain, but I am trying to build a small content
management system, which retrieves a top layer of information related to a
record in the database (e.g. ID, title, sectionname, filename). Then I am
checking again the same database table to look for any "child" elements to
the first "parent" element, again retrieving the same info (ID, title,
sectionname, filename) and then I am checking again to see if there are any
child elements to that child element, if there are then display them, if not
then don't.

The problem I am having is layout, I want to be able to have a fairly
flexible layout so that content can be displayed like this:

Element 1 title
        Element 1 Child Title
                Element 1 Child Child Title
Element 2 title
        Element  2 Child Title
        Element  2 Child Title
        Element  2 Child Title
        Element  2 Child Title
                Element 2 Child Child title
Element 3 title
        Element  3 Child Title
                Element 3 Child Child title
Element 3 Child Child title
Element 3 Child Child title
Element 3 Child title
Element 3 Child title

The layout could be random it all depends on what is returned from the
database table, tricky ehh!



Stephen Adams
Forvus
53 Clapham Common South Side,
London,
SW4 9BX
http://www.forvus.co.uk

 -----Original Message-----
From:   Stephen Moretti (cfmaster) [mailto:[EMAIL PROTECTED]
Sent:   21 July 2004 14:08
To:     [EMAIL PROTECTED]
Subject:        Re: [ cf-dev ] using custom tag CF_QueryToStruct

A query is already a struct of arrays.

If you want it around the other way, array of structs, then there's
Nathan's Query to Array of Structures http://www.cflib.org/udf.cfm?ID=10

or there's the UDF that Neil has already mentioned that creates a Struct
of Structs.

What are you actually trying to do?

Stephen

Stephen Adams wrote:

>Hi,
>
>Has anyone used CF_QueryToStruct, and if so can you loop through the
>structure it returns. I have tried but I get an error telling me that:
>
>
>



--
These lists are syncronised with the CFDeveloper forum at
http://forum.cfdeveloper.co.uk/
Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/

CFDeveloper Sponsors and contributors:-
*Hosting and support provided by CFMXhosting.co.uk* :: *ActivePDF provided
by activepdf.com*
      *Forums provided by fusetalk.com* :: *ProWorkFlow provided by
proworkflow.com*
           *Tutorials provided by helmguru.com* :: *Lists hosted by
gradwell.com*

To unsubscribe, e-mail: [EMAIL PROTECTED]


______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________


-- 
These lists are syncronised with the CFDeveloper forum at 
http://forum.cfdeveloper.co.uk/
Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/
 
CFDeveloper Sponsors and contributors:-
*Hosting and support provided by CFMXhosting.co.uk* :: *ActivePDF provided by 
activepdf.com*
      *Forums provided by fusetalk.com* :: *ProWorkFlow provided by proworkflow.com*
           *Tutorials provided by helmguru.com* :: *Lists hosted by gradwell.com*

To unsubscribe, e-mail: [EMAIL PROTECTED]

Reply via email to