Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / ColdFusion / General CF Topics / June 2008



Tip: Looking for answers? Try searching our database.

Error Executing Database Query

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Epid3mik - 26 Jun 2008 21:22 GMT
Error Executing Database Query.
[Macromedia][SequeLink JDBC Driver][ODBC Socket][Microsoft][ODBC Microsoft
Access Driver] Data type mismatch in criteria expression.
 
The error occurred in Z:\users\ia-fall2007\davon\epmk\inbox.cfm: line 5

3 : SELECT from_user, message_content, datesent, new, timesent, to_user,
subject, mem_num
4 : FROM private_msg
5 : WHERE mem_num = #sid#
6 : </cfquery>
7 : <html>

Thanks for any help that cna be provided

the link i setup for it is:

inbox.cfm?sid=#session.user_id#

<cfquery datasource="dsn" name="inbox">
SELECT from_user, message_content, datesent, new, timesent, to_user, subject,
mem_num
FROM private_msg
WHERE mem_num = #sid# <---this is where the error points to
</cfquery>
paross1 - 26 Jun 2008 22:00 GMT
What is the data type of mem_num? Could it perhaps be text? If so, try putting single quotes around '#sid#' or better still, use CFQUERYPARAM

WHERE mem_num = '#sid#'

Phil
GArlington - 27 Jun 2008 11:56 GMT
>  Error Executing Database Query.
>  [Macromedia][SequeLink JDBC Driver][ODBC Socket][Microsoft][ODBC Microsoft
[quoted text clipped - 21 lines]
>  WHERE mem_num = #sid# <---this is where the error points to
>  </cfquery>

Please, please, please STOP using Access DB, it is for your home
records collection, NOT for anything else...

I suspect that your "mem_num" in DB is NOT numeric.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2010 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.