We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 6513
    • 28 Posts
    Hello,
    I am using loopDbChunk snippet to loop through a series of queries from my DB. The loopDbChunk snippet allows for a single table to be queried and I need to query another table to get an image associated with a particular query (a company actually). To solve this I thought I would call a snippet from within the above snippet as the images need to coincide with the company.

    Can I pass a parameter from the "Container" snippet to the inner snippet? I need to company name from the first snippet to be used in the nested snippet. Is this possible? I hope that makes sense....

    Snippet Call Example:
    [[loopDbChunk? &para1=`x` &para2=`y` &outputPara=`output-a-variable` [!images &para=`output-a-variable`!] ]]

    Thanx!!
    *****************************************************

    Decided just to add an image field to the DB to simplify things smiley