ColdFusion Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreColdFusion Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
1200+ fellow developers rate and compare features of the top IDEs, like Visual Studio, Eclipse, RAD, Delphi and others, across 13 categories. Enjoy this FREE Download of the IDE User Satisfaction Study by Evans Data Corporation. Download Now!
  #1  
Old December 21st, 2004, 01:52 AM
dragonvn dragonvn is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2004
Posts: 79 dragonvn User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 12 h 31 m 23 sec
Reputation Power: 4
Too few parameter???

Please help me this problem

Quote:
Error Executing Database Query.
[Macromedia][SequeLink JDBC Driver][ODBC Socket][Microsoft][ODBC Microsoft Access Driver] Too few parameters. Expected 1.

The error occurred in C:\www\cms\admin\finduser.cfm: line 14

12 : <!--- Change members name. --->
13 : <cfquery name="quickfind_person" datasource="#db_name#" username="#db_id#" password="#db_pass#">
14 : SELECT * FROM member WHERE Username = #Form.username#
15 : </cfquery>


Find Form

Quote:
<cfform name="form1" method="post" action="/cms/admin/finduser.cfm">

<cfinput name="username" type="text" size="30" maxlength="30">

<input name="act" type="hidden" id="act" value="quickfind">

<input name="quickfind" type="submit" id="quickfind" value="Find member">

</cfform>


Thank in advance!

Reply With Quote
  #2  
Old December 21st, 2004, 01:56 AM
dragonvn dragonvn is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2004
Posts: 79 dragonvn User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 12 h 31 m 23 sec
Reputation Power: 4
Thank you so much, I figured out and fixed it.

Quote:
SELECT * FROM member WHERE Username = #Form.username#


should be

Quote:
SELECT * FROM member WHERE Username = '#Form.username#'

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreColdFusion Development > Too few parameter???


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 | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway