Salve ...questo pezzo di codice non mi prende l'ultimo id inserito nella tabella del database...(mi prende il primo) e poi inserirlo nel cookies..perchè?![]()
if Request.cookies("www.tangrediworldnotes.com")("idu tente")="" then
Set conn = Server.CreateObject("ADODB.Connection")
conn.Open "DRIVER={Microsoft Access Driver (*.mdb)};DBQ=" & Server.MapPath("/mdb-database/ordina2.mdb")
sSql = "SELECT TOP 1 ID FROM tabbanconote ORDER BY ID DESC"
Set rs=server.CreateObject("ADODB.Recordset")
rs.Open "tabbanconote",conn,3,3
idutente=rs("id")
response.cookies("www.tangrediworldnotes.com")("id utente")= idutente
rs.Close
Set rs = Nothing
'Chiudo la connessione al database e libero la memoria
conn.Close
Set conn = Nothing
end if
GRAZIE![]()

Rispondi quotando

]
