Jump to content
Sign in to follow this  
gmz1023

Printing What Shouldn't Be

Recommended Posts

Okay, so i'm new to CF. so i'm probably funking it up somewhere. but when i put a code down like this:

<CFQUERY name="data" datasource="MyDB">  SELECT MyField  FROM MyDB  ORDER BY MyField</CFQUERY>

it actually prits out

SELECT MyField FROM MyDB ORDER BY MyField

so what am i doing wrong?

Share this post


Link to post
Share on other sites

I don't see how it would print your query out unless there's more code that you're not showing us. Anything within a cfquery shouldn't be displayed.

Share this post


Link to post
Share on other sites

IS the file saved as .cfm or .htm? If you are not saving the file with the correct extension, then ColdFusion will never be able to process the request.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...