micjohnson
Programmer
Hi there!
When i am using CFTRY, CFCATCH, i am getting this error.
Error:
Just in time compilation error
An extraneous end tag </CFCATCH> has been encountered at document position (120:3) to (120:12). End tags cannot be present in CFML templates without a matching start tag.
My code is:
<CFTRY>
<CFQUERY NAME="DailyAttendance" DATASOURCE="DC_Schools">
INSERT INTO dbo.Daily_Rec (<CFIF Group IS NOT "Staff">Time_in_first_half<CFELSE>Time_in_first_half, Hours </CFIF>, Spec_code, Time_Out_First_half, Time_out_second_half, Time_in_second_half, String_Date)
VALUES ('#AttendanceArray[2][outercounter]#', <CFIF Group IS "Staff">'12:00 AM', </CFIF>'#AttendanceArray[1][outercounter]#', '#Time_out#', '#Time_out_2nd#', '#Time_in_2nd#', '#String_Date#')
</CFQUERY>
<CFCATCH TYPE="Database">
<CFOUPUT> Error #CFCATCH.SQLSTATE#</CFOUTPUT>
</CFCATCH>
</CFTRY>
Help me plse.
mic
When i am using CFTRY, CFCATCH, i am getting this error.
Error:
Just in time compilation error
An extraneous end tag </CFCATCH> has been encountered at document position (120:3) to (120:12). End tags cannot be present in CFML templates without a matching start tag.
My code is:
<CFTRY>
<CFQUERY NAME="DailyAttendance" DATASOURCE="DC_Schools">
INSERT INTO dbo.Daily_Rec (<CFIF Group IS NOT "Staff">Time_in_first_half<CFELSE>Time_in_first_half, Hours </CFIF>, Spec_code, Time_Out_First_half, Time_out_second_half, Time_in_second_half, String_Date)
VALUES ('#AttendanceArray[2][outercounter]#', <CFIF Group IS "Staff">'12:00 AM', </CFIF>'#AttendanceArray[1][outercounter]#', '#Time_out#', '#Time_out_2nd#', '#Time_in_2nd#', '#String_Date#')
</CFQUERY>
<CFCATCH TYPE="Database">
<CFOUPUT> Error #CFCATCH.SQLSTATE#</CFOUTPUT>
</CFCATCH>
</CFTRY>
Help me plse.
mic