That's true, CF comments should be <!---. This way, they
don't appear in the resulting HTML. Do a View Source and
you'll see there not in there.
But your ultimate problem is that ColdFusion isn't touching
the code in the first place. If you do a View Source on
what you're getting now, you'll probably see all of the CF
tags (CFQUERY, etc).
Ideally, ColdFusion should be reading page and removing
them. Make sure:
- You're saving the page with a .cfm extension (not .htm)
- ColdFusion is running (can you get into the CF
Administrator?)
- You're viewing the page through the server, not straight
off of the disk. Make sure when you give the address of the
page, it starts with "http://" and not "c:\". If you go
straight for the disk, the webserver and ColdFusion never
have a chance.
If it still doesn't work, send another note...
Norman Elton
Quoting Dina Hess <[EMAIL PROTECTED]>:
> Hello newbie...welcome to my club :-)
>
> The only thing I see wrong with your code is the
> comment tags...these should be <!--- --->, not <!--
> -->
> ----- Original Message -----
> From: [EMAIL PROTECTED]
> To: CF-Talk
> Sent: Tuesday, July 31, 2001 5:37 AM
> Subject: Newbie question
>
>
> Hi all
> I've got a problem and I can't solve it.
> I'm trying to follow a book example
>
> That is the code:
>
> <html>
> <head><title>Coldfusion Informe
> Barcos</title></head>
> <body>
> <!-- Coldfusion query -->
> <cfquery name="Datos" datasource="SGBD_SIPLA"
> dbtype="ODBC" username="podsd" password="23524" >
> Select C01010, C01015 from SIG00010 where C01010
> ='7327720'
> </cfquery>
>
> <cfoutput query="Datos">
> <P>Lloyd : #C01010#<br>
> <P>Eslora : #C01015#<br>
> </cfoutput>
> </body>
> </html>
>
> And that's what I obtain:
>
> Select C01010, C01015 from SIG00010 where C01010
> ='7327720'
> Lloyd : #C01010#
> Eslora : #C01015#
>
> The book says that we should obtain the values
> which correspond with those fields.It seems like
> ColdFusion doesn't recognize his tags
> I don't know why
> Can anybody tell me what could be happenig?
>
> Thanks in advance
> Best regards
> Manuel
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists