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

Popular posts from this blog

Joomla 3.3 Installation Error message - Joomla! Forum - community, help and support

Multilanguage infinite redirect loop error. - Joomla! Forum - community, help and support

Thread: Wine can't find the cd