gerfaut11
Messages postés
32
Date d'inscription
mercredi 8 novembre 2000
Statut
Membre
Dernière intervention
28 mars 2006
26 avril 2005 à 15:10
salut
La modif se fait en trois pages
1ere page je liste toutes les plantes de ma base
2eme page je modifie les champs
3eme page je fais un UPDATE
Voici la 3eme page==>
RefPla=Request.Form("RefPla")
NomLatinbis=Request.Form("NomLatin-bis")
NomFrancaisbis=Request.Form("NomFrancais_bis")
Refpla=CINT(RefPla)
NomLatinbis=Replace(lot_bis,"'","''")
NomLatinbis=Replace(lot_bis,"<","<")
NomLatinbis=Replace(lot_bis,">",">")
NomFrancaisbis=Replace(sponsor_bis,"'","''")
NomFrancaisbis=Replace(sponsor_bis,"<","<")
NomFrancaisbis=Replace(sponsor_bis,">",">")%>
DSN_BASE = "DBQ=" & Server.Mappath("/fpdb/Nouvelle plante.mdb") & ";Driver={Microsoft Access Driver (*.mdb)};Driverld=25"%>
Set Conn = Server.CreateObject("ADODB.Connection")
Conn.Open DSN_BASE
Set Rs = Server.CreateObject("ADODB.Recordset")%>
RequeteSQL = "Update Résultats Set NomLatin='"&NomLatinbis&"',NomFrancais='"&Nomfrancaisbis&"' WHERE ref_Pla=" & RefPla
Rs.Open RequeteSQL , Conn%>
Set Rs = Nothing
Conn.Close
Set Conn = Nothing%>
<HTML>
<head>
<meta http-equiv=
"Content-Type" content="text/html; charset=windows-1252"
>
<meta name=
"GENERATOR" content="Microsoft FrontPage 4.0"
>
<meta name=
"ProgId" content="FrontPage.Editor.Document"
>
<title>
Marathon2000 - asp-irine.com : Validation de la modification du lot
</title>
</head>
"center">
Merci! La plante <%=NomLatinbis%>
a bien été modifié!
[Default.htm
retour page d'accueil]
</html>