Variable undefined
good morning have situation wherein during insert database, variable created cfif/cfset throws error. missing something? code below...
<cfset gradepoint =val('#fcnpoint#') + val('#attitudepoint#') +
val('#guestpoint#') + val('#contactpoint#') + val('#attendancepoint#')
+ val('#nspoint#') + val('#foidpoint#') + val('#otherpoint#')>
<cfif "#gradepoint#" gte "-20.45" , "#gradepoint#" lte "11.1"><cfset
maingrade= 'f'></cfif>
insert squadreport (squid, squgrade)
values ('00', '#maingrade#')
</cfquery>
if cfif condition not met, #maingrade# not set.
you cfparam #maingrade#, not address issue, prevent error.
^_^
More discussions in ColdFusion
adobe
Comments
Post a Comment