Ask a Question related to Coldfusion Database Access, Design and Development.
-
bfinelsen #1
Adding CFTags to Database Retrieval...Can it be done?
Here is my dilemma, I am pulling some data from an Access database using the
CFOUTPUT tag, simple enough. However, within that data, I wanted to include a
variable that coldfusion would populate. For example, the data would be:
To access the system, use the name: #user_name# and the password #user_pass#.
Can this be done? I have also tried using the code in the data, eg:
To access the system, use the name: <CFOUTPUT>#query.user_name# and the
password #query.user_pass#.</CFOUTPUT>
Both times have resulted in the data being populated literally rather than
dynamically. Again, I'm not sure if this is even possible, but I'm not the
most advanced CF programmer :). Thanks in advance for any help.
bfinelsen Guest
-
Adding values from a database
A simple query returns about 500 numbers from the same feild. I need to add these together and display the result. Any hints would be welcome. -
Database retrieval via search
Sorry, total newbie....ive been going through a book and trying to alter for my own needs, but i just cant get it to work....could anyone help. Im... -
adding a database
After 6 attempts, I finally got CF7 downloaded and installed without errors. I've just started working through the 'Getting Started Experience... -
adding list items to a database
Not sure if this is javascript or php so i put it in both newsgroups, sorry if it's the wrong group. I wrote (with help) a code to put several... -
Adding points to a database ( adding / subtrating numeric values)
HI all, I have build a user database that comes with user points for browsing private section of my site. I would like to know what is the... -
forumnotifier #2
Adding CFTags to Database Retrieval...Can it be done?
Here is my dilemma, I am pulling some data from an Access database using the
CFOUTPUT tag, simple enough. However, within that data, I wanted to include a
variable that coldfusion would populate. For example, the data would be:
To access the system, use the name: #user_name# and the password #user_pass#.
Can this be done? I have also tried using the code in the data, eg:
To access the system, use the name: <CFOUTPUT>#query.user_name# and the
password #query.user_pass#.</CFOUTPUT>
Both times have resulted in the data being populated literally rather than
dynamically. Again, I'm not sure if this is even possible, but I'm not the
most advanced CF programmer :). Thanks in advance for any help.
forumnotifier Guest
-
JMGibson3 #3
Re: Adding CFTags to Database Retrieval...Can it bedone?
You don't pull data with the CFOUTPUT command you pull it with the CFQUERY
command and display it with the CFOUTPUT. That said your second example should
work perfectly if you ran a <CFQUERY name="query"> somewhere in front of it.
If you did do this make sure the query actually found something <cfdump
var="#query#>. Also substitute the word myquery, query might be a keyword.
JMGibson3 Guest



Reply With Quote

