Pagina 2 di 3 primaprima 1 2 3 ultimoultimo
Visualizzazione dei risultati da 11 a 20 su 22

Discussione: Connessione mysql

  1. #11
    Moderatore di ASP e MS Server L'avatar di Roby_72
    Registrato dal
    Aug 2001
    Messaggi
    19,559
    codice:
    whtConn.Open = "DRIVER={MySQL ODBC 3.51 Driver};DATABASE=aaaaa;SERVER=bbbbbb;UID=cccc;PASSWORD=ddddd"
    Roby

  2. #12
    mmmm...nisba...mi da un errore
    Active Server Pages error 'ASP 0126'

    Include file not found

    /articoli/default.asp, line 2

    The include file '/common/dbconn1.asp' was not found.

  3. #13
    indovina un pò che errore è...avrai sbagliato il percorso dell'include
    IP-PBX management: http://www.easypbx.it

    Old account: 2126 messages
    Oldest account: 3559 messages

  4. #14
    ho provato ad inserire la pagina cinnessione in default e mi da questo errore
    Microsoft OLE DB Provider for ODBC Drivers error '80040e21'

    ODBC driver does not support the requested properties.

    /articoli/default.asp, line 64

  5. #15
    che c'è alla linea 64?
    IP-PBX management: http://www.easypbx.it

    Old account: 2126 messages
    Oldest account: 3559 messages

  6. #16
    dataRS.Open dataSQL, whtConn, 1

  7. #17
    Moderatore di ASP e MS Server L'avatar di Roby_72
    Registrato dal
    Aug 2001
    Messaggi
    19,559
    Posta l'errore e la query.

    Roby

  8. #18
    Questo è l'errore
    Microsoft OLE DB Provider for ODBC Drivers error '80040e21'

    ODBC driver does not support the requested properties.

    articoli/default.asp, line 6


    questa è la index



    <%
    set dataRS = Server.CreateObject("ADODB.RecordSet")
    dataSQL = "Select id FROM tblPages where homepage = 1;"
    dataRS.Open dataSQL, whtConn, 1

    if mysqlrecordcount <> 1 then
    dataRS.Close
    Set dataRS = Nothing
    whtConn.Close
    Set whtConn = Nothing
    response.redirect("sethomepage.htm")
    end if

    id = dataRS("id")

    'close connections,etc..
    dataRS.Close
    Set dataRS = Nothing
    whtConn.Close
    Set whtConn = Nothing

    homepagepath = "page.asp?id=" & id

    response.redirect(homepagepath)
    %>

    Questa e la pagina di connsessione


    <%
    'dim whtConn, dbpath
    set whtConn = server.createobject("adodb.connection")
    '********EDIT THE LINE BELOW TO MATCH THE DSN OF YOUR MYSQL DATABASE DSN CONNECTION NAME ********

    whtConn.Open = "DRIVER={MySQL ODBC 3.51 Driver};DATABASE=Sql3111_4;SERVER=62.111.111.11;UI D=Sql31111;PASSWORD=HW8888"

    '************************************************* *********************

    'FUNCTIONS
    FUNCTION PreSubmit(p_sTargetString)
    PreSubmit = REPLACE(p_sTargetString,"textarea","")
    PreSubmit = REPLACE(PreSubmit,"%","&#37;")
    PreSubmit = REPLACE(PreSubmit,"'","&#39;")
    'PreSubmit = REPLACE(PreSubmit,"""","&quot;")
    PreSubmit = Trim(PreSubmit)
    END FUNCTION

    FUNCTION PreSubmit2(p_sTargetString)
    PreSubmit2 = REPLACE(p_sTargetString,"textarea","")
    PreSubmit2 = REPLACE(PreSubmit2,"%","&#37;")
    PreSubmit2 = REPLACE(PreSubmit2,"'","&#39;")
    PreSubmit2 = REPLACE(PreSubmit2,"""","&quot;")
    PreSubmit2 = REPLACE(PreSubmit2,"<","&lt;")
    PreSubmit2 = REPLACE(PreSubmit2,">","&gt;")
    'PreSubmit2 = REPLACE(PreSubmit2,vbCrlf,"
    ")
    PreSubmit2 = Trim(PreSubmit2)
    END FUNCTION


    Function MySQLRecordCount
    recordcount = 0
    while not dataRS.EOF
    recordcount = recordcount + 1
    dataRS.movenext
    wend
    if recordcount > 0 then
    dataRS.movefirst
    end if
    mysqlrecordcount = recordcount
    End Function

    Function MySQLRecordCount2
    recordcount = 0
    while not updateRS.EOF
    mysqlrecordcount = recordcount + 1
    updateRS.movenext
    wend
    'updateRS.movefirst
    'mysqlrecordcount = recordcount
    End Function

    %>

  9. #19
    Moderatore di ASP e MS Server L'avatar di Roby_72
    Registrato dal
    Aug 2001
    Messaggi
    19,559
    dataRS.Open dataSQL, whtConn

    Roby

  10. #20
    ora non mi connette perche nn trova questa tabella nelDB...ecco l'errore

    Microsoft OLE DB Provider for ODBC Drivers error '80040e37'

    [MySQL][ODBC 3.51 Driver][mysqld-4.0.27-standard-log]Table 'Sql11111_4.tblPages' doesn't exist

    /articoli/default.asp, line 6


    io ho controllato però esiste quella tabella...ho notato che la p è in minuscolo, invece di tblPages sul DB è tblpages

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2026 vBulletin Solutions, Inc. All rights reserved.