Mise a jour base de donnée mysql avec php

jamelzzz Messages postés 10 Date d'inscription mardi 7 avril 2009 Statut Membre Dernière intervention 16 mai 2009 - 2 mai 2009 à 12:06
kohntark Messages postés 3705 Date d'inscription lundi 5 juillet 2004 Statut Membre Dernière intervention 27 avril 2012 - 2 mai 2009 à 12:53
voici mon code  d'ajout:
et je  veut  le  faire  mise a jour  suivant la  date_client:
je  veut  un exemple
<html>

<?
$nom_client=$_POST['nom'];
$prenom_client=$_POST['prenom'];
$date_client=$_POST['date'];
$mail_client=$_POST['mail'];
$adresse_client=$_POST['adresse'];
$n_portable=$_POST['numportable'];
$n_fixe=$_POST['numfixe'];
$hisorique=$_POST['hist'];
$publicite=$_POST['publicite'];
$mere_client=$_POST['nomdelamere'];
$diagnostic_client=$_POST['diagnostic'];
$observation_client=$_POST['observa'];

mysql_connect("localhost","root","") or die ("Impossible de se connecter à MySQL");
mysql_select_db("pro") or die("Impossible de sélectionner la base de données");
$query_string="INSERT
INTO etudiant VALUES
('$nom_client','$prenom_client','$date_client','$mail_client','$adresse_client','$n_portable',
'$n_fixe','$hisorique','$publicite','$mere_client','$diagnostic_client','$observation_client')";
$query=mysql_query($query_string);
if ($query) {

?>
<script language=javascript>
alert('Votre requête a bien été enregistrée');

</script>
<?
 
} else {
?>
<script language=javascript>
alert('Il y a eu un problème avec votre requête');

</script>

<?
 
 
}
#
// déconnection avec MySQL
#
mysql_close();
?>

</html>

1 réponse

kohntark Messages postés 3705 Date d'inscription lundi 5 juillet 2004 Statut Membre Dernière intervention 27 avril 2012 30
2 mai 2009 à 12:53
Renseigne toi sur le conditionnel du verbe vouloir et explore les possibilités gigantesques de "souhaiter", ainsi que "bonjour", "s'il vous plait", "merci"
Ensuite tu pourras relire le règlement pour lequel tu as pourtant adhéré lors de on inscription, et en tenir compte.

Après on en reparle, ok ?

Kohntark -
0
Rejoignez-nous