Cold Fusion Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 



Go Back   Dev Articles Community ForumsProgrammingCold Fusion Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old March 21st, 2006, 07:50 PM
barak81 barak81 is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Mar 2006
Posts: 1 barak81 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
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

Reply With Quote
  #2  
Old July 31st, 2012, 01:50 PM
ranjinie ranjinie is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jul 2012
Posts: 1 ranjinie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 11 m 37 sec
Reputation Power: 0
you forgot to close you tag

26 : <cfelse
it should be <cfelse>

Reply With Quote
  #3  
Old August 2nd, 2012, 09:13 PM
Bernard421 Bernard421 is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Aug 2012
Posts: 2 Bernard421 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 7 m 27 sec
Reputation Power: 0
June you seem to be pretty knowledgeable. How do I keep the record from creating a new until I click submit. I am finding that despite the message box being displayed, it is still creating a new record as I update the form.URLURLURLURL

Reply With Quote
  #4  
Old December 27th, 2012, 07:57 PM
Elvin22a Elvin22a is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Dec 2012
Posts: 5 Elvin22a User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 11 m 2 sec
Reputation Power: 0
I am finding that despite the message box being displayed


Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingCold Fusion Development > Invalid token error message


Developer Shed Advertisers and Affiliates


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.

© 2003-2014 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap