קוד:
<%
path=Server.mappath("MY_Order.mdb")
set con= Server.createobject("ADODB.Connection")
con.mode=3
con.open "Provider=Microsoft.Jet.OLEDB.4.0;data source=" &path
m=Request.Form("moregame")
set R=con.execute("select*from dor_data where game='"&m&"'")
if not R.eof then
response.write "כבר הזמנת את המשחק, נסה שנית"
else
sq="insert into dor_data(moregame) values('"&m&"') where (id='"&session ("i")&"')"
con.Execute sq
%>
<html dir="rtl">
<body>
<font size="2" face="arial">
<center> <h1>הזמנת בהצלחה את הכרטיסים למשחק <%=m%></h1>
</font>
</body>
</html>
<%
end if
%>
השגיאה:
ציטוט:
סוג שגיאה:
Microsoft JET Database Engine (0x80040E14)
סימן נקודה-פסיק ( חסר בסוף משפט SQL.
/insertgame.asp, line 16
|
אם אני בוחר משחק שכבר הוזמן, כתוב מה שצריך - "הזמנת את המשחק, נסה שנית"
אם בוחרים משחק שלא הוזמן יש את השגיאה הזאת
והרי זה Vbscript ואין שם ;
אשמח לעזרה
