Exécution d’une requête de mise à jour

Author:


Download

<html>
<head>
<title>Requête Mise à jour</title>
</head>
<body>

<?php
   mysql_connect("localhost","root","");
   mysql_select_db("cours");

   $requete = "UPDATE Etudiants SET Note= '15.9' where ID=1 ";
   $result = mysql_query($requete);
   if(!$result)
     print "Erreur d'exécution de Requête";
    else
      echo "Succès: ".mysql_affected_rows()." Ligne(s) affectée(s). ";

?>

</body>
</html>

Leave a Reply

Your email address will not be published. Required fields are marked *


− three = 2