You can't nest # or " in CF....
And you don't need # inside <cf.....>

Try this:
<cfloop query="GetRecordNotCollected">
<cfset Howmanyday =Abs(DateDiff("d",now(),sec_confirm))>
<cfif Howmanyday GTE "7">
my output
</cfif>
</cfloop>

HTH,
D
*************
Diana Nichols
Webmistress
http://www.lavenderthreads.com
770.434.7374

"One man's magic is another man's engineering." ---Lazarus Long


-----Original Message-----
From: Noor Farizan Morshidi (AMS E-Business)
[mailto:[EMAIL PROTECTED]]
Sent: Friday, May 25, 2001 3:10 AM
To: SQL
Subject: Query Problem


i have a problem in Sql. I try to write sql including the different between
time( '#Abs("#DateDiff("d","#now()#","#sec_confirm#")#")#') in the
where command so that i can output the record easily. But i don't have
the solution how to solve this problem. If anyone know how to solve this
problem please do help me.

my coding

<cfquery name="GetRecordNotCollected" datasource="clientmaster"
dbtype="ODBC">
        Select *
        from user_info
        where getlogin_ready = '1'
</cfquery>

<cfloop query="GetRecordNotCollected">
<cfset Howmanyday =
'#Abs("#DateDiff("d","#now()#","#sec_confirm#")#")#'>
<cfif Howmanyday GTE "7">
my output
</cfif>
</cfloop>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to