Ask a Question related to Coldfusion - Getting Started, Design and Development.
-
roblaw #1
Very basic Data Output question
I have an MSAccess database with a text field named 'field1'. The value of the
records in that table are formatted as follows: #dynamic# red widgets #dynamic#
blue widgets blue #dynamic# widgets etc.... When I pull the records from the
DB, I am outputting in a list. <cfset dynamic='myValue'> <cfloop
index='theField' query='myQuery'> <cfoutput> #theField# </cfoutput>
</cfloop> My problem is that the output displays as: #dynamic# red widgets
#dynamic# blue widgets blue #dynamic# widgets When I need it to display as:
myDynamic red widgets myDynamic blue widgets blue myDynamic widgets Is there a
formatting option that will allow this database field to output with the
#dynamic# value resolved in the page? Thanks much. roblaw
roblaw Guest
-
Basic question about saving data
Hey everybody, I am new to Flex and am learning slowly. Some of this stuff is very foreign to me but once I grasp the basic concepts, I am sure... -
Basic Problems with data
Hi all, Sorry that this is such a basic question - I just can't seem to find the answer or the way of doing it myself! I'm pretty new to Flash... -
basic data read and put it on web form
i'm trying to read data from SQL Server database using data reader and assigned it to a label in my asp.net web application. but when the button is... -
ASP.NET and SSL basic question.
Hi, Apologies if this question is a bit basic, but I can't seem to find any documentation anywhere. I have an asp.net site running on Windows... -
basic css question
In several of my posts lately, I have made it known that I am nto a huge fan of using newer stuff as opposed to older methods of getting things... -
ksmith #2
Re: Very basic Data Output question
Hi Roblaw, Your explanation of what you are trying to do is not clear. But,
the cfloop/query only takes the queryname and optionally the start and end row.
There is no index using the query form of cfloop. Cfoutput takes a query
attribute and will then loop throw each row of your result. So your code
probably needs to look more like:
<cfoutput query="myQuery">
#field1#
</cfoutput>
or possibly:
<cfloop query="myQuery">
<cfoutput>
#myQuery.field1#
</cfoutput>
</cfloop>
ksmith Guest



Reply With Quote

