
March 21st, 2006, 07:50 PM
|
|
Registered User
|
|
Join Date: Mar 2006
Posts: 1
Time spent in forums: 11 m 45 sec
Reputation Power: 0
|
|
|
Invalid token error message
Hey all, Im trying to run a login page that cheacks the users details against a database and then alows him access to all his details if he has got the credentials right. However i think im having a bit of a problem some where in the CFIF part as i keep getting this error
Quote: Invalid token 'c' found on line 27 at column 26.
26 : <cfelse
27 : <cfoutput>
28 : Sorry you have enterd incorent details
29 : </CFOUTPUT> |
Code:
<cfquery name="login"
datasource="xxxx"
dbtype="odbc"
username="xxxxxx"
password="xxxxxx">
SELECT * FROM cust WHERE NAME = '#form.NAME#' AND EMAIL = '#form.EMAIL#'
</cfquery>
<html>
<body>
<CFIF login.recordcount gt 0>
<table border ="5" align="center">
<CFOUTPUT query="login">
<tr>
<td>#CUSTNO#</td>
<td>#NAME#</td>
<td>#ADDRESS#</td>
<td>#CITY#</td>
<td>#POSTCODE#</td>
<td>#EMAIL#</td>
</tr>
</cfoutput>
</table>
<cfelse
<cfoutput>
Sorry you have enterd incorent details
</CFOUTPUT>
</CFIF>
</html>
</body>
Any body have any ideas where im going wrong, any help would be much appreciated.
Many Thanks
Barak
|