The best way to check for valid attirbutes is to type cfquery into google, the top link is usualy the Macromedia LiveDocs, that will explain the tag and all its attributes.
This same process can be used for most of the CF Tags.
But as far as a query is concerned, a basic cfquery should contain 2 attributes, 1st should be 'name' this will be used to referance the query result when you output it, secondly set a 'datasourse' which is the name of your Datasource set in coldfusion administrator panel.
So, i have a datasource called 'mydatabase' so my basic query and output looks like this.
Code:
<cfquery name="query1" datasource="mydatabase">
SELECT * FROM tablename
</cfquery>
<cfoutput query="query1">
#field1# and #field2#
</cfoutput>
Let us have a look at your code and we'll be able to help more.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.