הוסטס - פורום אחסון האתרים הגדול בישראל

הוסטס - פורום אחסון האתרים הגדול בישראל (https://hosts.co.il/forums/index.php)
-   פורום תיכנות (https://hosts.co.il/forums/forumdisplay.php?f=14)
-   -   שגיאה מוזרה (https://hosts.co.il/forums/showthread.php?t=62669)

דור 03-05-08 15:02

שגיאה מוזרה
 
קוד:

<%
       
        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 ואין שם ;

אשמח לעזרה:-/

דניאל 03-05-08 15:07

גוגל יכול להיות לפעמים כלי מדהים:
http://www.google.com/search?hl=en&q...=Google+Search

דור 03-05-08 15:13

תוכל להסביר מה אמורים לעשות? לא הבנתי כ"כ

ViPeRt 04-05-08 14:19

יש לך בעיה ב SQL
כתבת
PHP קוד:

select*from dor_data where game='"&m&"' 

צריך רווח

PHP קוד:

select from dor_data where game='"&m&"' 



כל הזמנים הם GMT +2. הזמן כעת הוא 21:26.

מופעל באמצעות VBulletin גרסה 3.8.6
כל הזכויות שמורות ©
כל הזכויות שמורות לסולל יבוא ורשתות (1997) בע"מ