cheap nfl jerseys china cheap nfl jerseys free shipping wholesale nfl jerseys china wholesale jerseys from china cheap nfl jerseys free shipping cheap nfl jerseys for sale cheap jerseys free shipping wholesale nfl jerseys from china cheap nfl jerseys sale cheap nike nfl jerseys china wholesale jerseys free shipping cheap nfl jerseys wholesale wholesale nfl jerseys online cheap nfl jerseys wholesale china jerseys wholesale cheap coach handbags outlet authentic designer handbags cheap coach handbags outlet cheap coach purses outlet discount coach bags coach bags sale coach purse outlet cheap real coach purses coach handbags sale online coach purse outlet michael kors outlet online store cheap michael kors bags cheap michael kors purse michael kors factory outlet online cheap michael kors handbags cheap michael kors purses michael kors bags outlet online cheap michael kors purse michael kors handbags discount
utilizzazione di un db

aggiornamento: parte 1 - scelta del record

scelta dell'utente e cattura dell'ID <a href="aggiorna.asp?ID=<%= ID %>"><%= Name %></a> aggiornamento: parte 2 - modifica dei dati ' si usa request.querystring per recuperare l'ID dalla pagina precedente ID = request.querystring("ID") set rs=Server.CreateObject("adodb.Recordset") connectme="DSN=kathi" sqlstmt = "SELECT * from Sample WHERE ID=" & ID rs.open sqlstmt, connectme ' recupero dati ID = rs("ID") Name = rs("Name") City = rs("City") State = rs("State") Country = rs("Country") ' HTML %> <form action="update.asp" method="post"> Name: <input type="text" name="Name" value="<%= Name %>"> City: <input type="text" name="City" value="<%= City %>"> State: <input type="text" name="State" value="<%= State %>"> Country: <input type="text" name="Country" value="<%= Country %>"> <input type="hidden" name="ID" value="<%= ID %>" <input type="submit" value="Submit"> </form> aggiornamento: parte 3 - UPDATE ID = request.form("ID") Name = request.form("Name") City = request.form("City") State = request.form("State") Country = request.form("Country") set conn=server.createobject("adodb.connection") conn.open "kathi" ' note how the ID number is added to the sql sqlstmt = "UPDATE Sample" sqlstmt = sqlstmt & " SET Name='" & Name & "'," sqlstmt = sqlstmt & "City='" & City & "'," sqlstmt = sqlstmt & "State='" & State & "'," sqlstmt = sqlstmt & "Country='" & Country & "'" sqlstmt = sqlstmt & " WHERE ID=" & ID ' notare che le variabili sono comprese tra apici singolo, ' mentre ID no, perch� � un numero Set RS = conn.execute(SQLstmt) Conn.Close � bene verificare gli errori