Question
Output variables stored in database
Hi,
Does anyone know if it is possible to save variables into a database such as the currentdate and then when you grab that data and cfoutput it have the variable be populated. For example I insert some text in the database and I want to add the current date, I would insert the following into the db:
"Some text and today is #LSDateFormat(Now(),"dddd")#. Some more text..."
Then I run a query to grab the above data from the database and cfoutput to give the following result:
Some text and today is Friday. Some more text...
Is this possible? Is there a way to do it? Or do we have to simply find and replace certain keywords and replace them with the dynamic stuff at runtime?
Cheers,
Dave
Does anyone know if it is possible to save variables into a database such as the currentdate and then when you grab that data and cfoutput it have the variable be populated. For example I insert some text in the database and I want to add the current date, I would insert the following into the db:
"Some text and today is #LSDateFormat(Now(),"dddd")#. Some more text..."
Then I run a query to grab the above data from the database and cfoutput to give the following result:
Some text and today is Friday. Some more text...
Is this possible? Is there a way to do it? Or do we have to simply find and replace certain keywords and replace them with the dynamic stuff at runtime?
Cheers,
Dave