<p>
<cfquery datasource="RegStudent" name="DisplaySearchingData" >
select * from student
WHERE 1=1
<cfif #Form.SName# NEQ ''>
AND firstname LIKE '%#Form.SName#%'
<cfelse >
AND mykad LIKE '%#Form.MyKad#%'
</cfif>
ORDER BY firstname, lastname
</cfquery>
</p>
Is it any wrong with my coding? if i put else between if command, should i close it with </cfelse>???
0 Replies - 1297 Views - Last Post: 07 March 2012 - 01:33 AM
#1
Error when i try to combining 2 form name in if else
Posted 07 March 2012 - 01:33 AM
Page 1 of 1
|
|

New Topic/Question
Reply



MultiQuote


|