שלח תשובה

זירת השאלות

650
צפיות
5
תשובות

בעיה בהתחברות לבסיס נתונים…

,‏ 31 במאי, 2004

כשאני מנסה לשלוח נתוניחם מהטופס לבסיס נתונים זה מראה לי את השגיאה:


The page cannot be displayed
There is a problem with the page you are trying to reach and it cannot be displayed.

——————————————————————————–

Please try the following:

Click the Refresh button, or try again later.

Open the localhost home page, and then look for links to the information you want.
HTTP 500.100 – Internal Server Error – ASP error
Internet Information Services

——————————————————————————–

Technical Information (for support personnel)

Error Type:
Microsoft OLE DB Provider for ODBC Drivers (0x80004005)
[Microsoft][ODBC Driver Manager] ‏‏SQLSetConnectAttr של מנהל ההתקן נכשל
/signup/sendingdb.asp, line 3


Browser Type:
Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)

Page:
GET /signup/sendingdb.asp

Time:
‏יום שני ‏31 ‏מאי ‏2004, 13:05:57


More information:
Microsoft Support

זה הקובץ עצמו:

<% Dim conn, SQLstr
Set conn = Server.CreateObject("ADODB.Connection")
conn.Open "database"
SQLstr="insert into data values('"&request.form("first")&"','"&request.form("age")&"','"&request.form("class")&"','"&request.form("adress")&"','"&request.form("pina")&"')"
    response.write "<html dir=rtl>"
    response.write "<body background='bg.jpg' text='white' dir=rtl>"
    response.write "<div align=center><font color=black size=2 face=tahoma><b>"
    response.write "הנתונים הוכנסו בהצלחה"
    response.write "</body>"
    response.write "</html>"
    response.end
conn.close
set conn=nothing
%>

תגיות:

5 תשובות

  1. אלדד הגיב:

    יושר


    The page cannot be displayed
    There is a problem with the page you are trying to reach and it cannot be displayed.

    ——————————————————————————–

    Please try the following:

    Click the Refresh button, or try again later.

    Open the localhost home page, and then look for links to the information you want.
    HTTP 500.100 – Internal Server Error – ASP error
    Internet Information Services

    ——————————————————————————–

    Technical Information (for support personnel)

    Error Type:
    Microsoft OLE DB Provider for ODBC Drivers (0x80004005)
    [Microsoft][ODBC Driver Manager] ‏‏SQLSetConnectAttr של מנהל ההתקן נכשל
    /signup/sendingdb.asp, line 3

    Browser Type:
    Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)

    Page:
    GET /signup/sendingdb.asp

    Time:
    ‏יום שני ‏31 ‏מאי ‏2004, 13:05:57

    More information:
    Microsoft Support

    זה הקובץ עצמו:

    <% Dim conn, SQLstr
    Set conn = Server.CreateObject("ADODB.Connection")
    conn.Open "database"
    SQLstr="insert into data values('"&request.form("first")&"','"&request.form("age")&"','"&request.form("class")&"','"&request.form("adress")&"','"&request.form("pina")&"')"
        response.write "<html dir=rtl>"
        response.write "<body background='bg.jpg' text='white' dir=rtl>"
        response.write "<div align=center><font color=black size=2 face=tahoma><b>"
        response.write "הנתונים הוכנסו בהצלחה"
        response.write "</body>"
        response.write "</html>"
        response.end
    conn.close
    set conn=nothing

  2. ניר טייב הגיב:

    כנראה שיש לך
    בעייה בהגרת ה-DSN נסה לשים DSN_LESS


    conn.Open "provider=microsoft.jet.oledb.4.0;data source="&Server.MapPath("yourDb")&";"


    (לאקסס)

  3. Cyc הגיב:

    איפה ההגדרה של הפעולה?
    עד כמה שאני הבנתי, יש לך מחרוזת SQL בה יש את הכנסת הנתונים לטבלה,
    אולם לא ראיתי שהשתמשת בחיבור שלך עם המחרוזת הזאת.
    ראה דוגמא:
    Conn.execute "insert into forsale values('"&num

  4. Cyc הגיב:

    הוספה


    <p align=left>
    Conn.execute "insert into tablename values('"&fieldname&"','" &fieldname&"')"
    </p>

שלח תשובה