navigation
a webmaster learning community
     Home    Register     Search      Help      Login    
Sponsors

Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions.

Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.

Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax

Search Forums
 

Advanced search
Recent Posts

 Todays Posts
 Most Active posts
 Posts since last visit
 My Recent Posts
 Mark posts read

 

*solved* Syntax error (missing operator) in query expression

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Development >> ASP and Database >> *solved* Syntax error (missing operator) in query expression
Page: [1]
 
lovduv

 

Posts: 152
Joined: 8/30/2005
Status: offline

 
*solved* Syntax error (missing operator) in query expre... - 11/9/2005 4:47:28   
I am using the white paper from Microsoft that Spooky suggests for image upload:
How to Send Form Results
to a Database and
an E-mail Address and
Use the File Upload Component
Simultaneously

I am trying to set up the database to accept uploaded images. I have set up the pages according to the white paper and everything works except for the actual writing of the record to the database. The image is saved in a folder on my site and an e-mail is sent when I hit submit and go to the page Process2.asp I get this DRW error:

Database Results Error
Description: Syntax error (missing operator) in query expression '‘any@anyemail.com’'.
Number: -2147217900 (0x80040E14)
Source: Microsoft JET Database Engine

Where any@anyemail.com is the e-mail field.

This is the form http://www.missyandross.com/form.htm

This is the code from the Process2.asp page:

<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>New Page 1</title>
</head>

<body>

<!--#include file="_fpclass/fpdblib.inc"-->
<% if 0 then %>
<SCRIPT Language="JavaScript">
document.write("<div style='background: yellow; color: black;'>The Database Results component on this page is unable to display database content. The page must have a filename ending in '.asp', and the web must be hosted on a server that supports Active Server Pages.</div>");
</SCRIPT>
<% end if %>
<%
fp_sQry="INSERT INTO Results (Name, Email, Comments, File) VALUES (‘::Name::’, ‘::Email::’, ‘::Comments::’, ‘::File::’)"
fp_sDefault=""
fp_sNoRecords="No records returned."
fp_sDataConn="form"
fp_iMaxRecords=256
fp_iCommandType=1
fp_iPageSize=0
fp_fTableFormat=False
fp_fMenuFormat=False
fp_sMenuChoice=""
fp_sMenuValue=""
fp_sColTypes="&ID=3&name=202&email=202&Comments=203&File=202&Remote_computer_name=202&User_name=202&Browser_type=202&Timestamp=135&"
fp_iDisplayCols=5
fp_fCustomQuery=True
BOTID=0
fp_iRegion=BOTID
%>
<!--#include file="_fpclass/fpdbrgn1.inc"-->
<p>
<%=FP_FieldVal(fp_rs,"ID")%></p>
<p>
<%=FP_FieldVal(fp_rs,"name")%></p>
<p>
<%=FP_FieldVal(fp_rs,"email")%></p>
<p>
<%=FP_FieldVal(fp_rs,"Comments")%></p>
<p>
<%=FP_FieldVal(fp_rs,"File")%></p>
<!--#include file="_fpclass/fpdbrgn2.inc"-->
</body></html>

< Message edited by lovduv -- 11/9/2005 17:47:32 >
Page:   [1]

All Forums >> Web Development >> ASP and Database >> *solved* Syntax error (missing operator) in query expression
Page: [1]
Jump to: 1





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts