Visualizzazione dei risultati da 1 a 2 su 2

Discussione: update upload

  1. #1
    Utente di HTML.it
    Registrato dal
    Mar 2006
    Messaggi
    16

    update upload

    Dim oUpload
    Set oUpload = new cUpload
    oUpload.AutoRename = True
    oUpload.Overwrite = False
    oUpload.SetPath "../public" 'Impostazione del percorso
    oUpload.Load
    While Not oUpload.EOF
    oUpload.Save()
    Select Case lCase(oUpload.Files("InputName"))
    Case "img_annuncio"
    'FileName_img_annuncio = oUpload.GetFileName()
    FileName_img_annuncio = oUpload.GetCompletePathFile

    End Select
    oUpload.MoveNext
    Wend

    'Set Conn = Server.CreateObject("ADODB.Connection")
    'Conn.Open "DRIVER={Microsoft Access Driver (*.mdb)};DBQ=" & Server.MapPath("../csc_data/csc_data.mdb")
    Set Rs=server.CreateObject("ADODB.Recordset")
    rs.activeconnection = con

    Rs.Open "tbl_annunci",Con,3,3

    Rs.Addnew
    Rs("user") = oUpload.Form("user")
    Rs("img_annuncio") = FileName_img_annuncio
    Rs.update
    Rs.Close
    Con.Close
    Set Rs = Nothing
    Set Con=Nothing
    Set oUpload = Nothing
    end if
    response.Redirect("../index.asp")




    %>

    <% con.close
    set con = nothing
    %>

  2. #2
    Utente di HTML.it
    Registrato dal
    Mar 2006
    Messaggi
    16
    OK RISOLTO.. CIAO!!

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.