Skip to main content
Inspiring
September 26, 2009
Question

cflocation not working when code is part of a query

  • September 26, 2009
  • 1 reply
  • 931 views

I've got a template page that runs a query based on the page name in the url. The query gets all the code for that page from the database. No problems there. The data is mostly html and the page displays wonderfully.

The trouble I'm having is that any included CF code doesn't run.

How do I get the server to evaluate the code coming back in the query so it properly runs the code prior to dumping it on to the page?

Thanks in advance.

    This topic has been closed for replies.

    1 reply

    Inspiring
    September 27, 2009

    Write it to a file and cfinclude the file.