Contrainte de type en sql
Fermé
mb42
Messages postés
432
Date d'inscription
vendredi 17 octobre 2008
Statut
Membre
Dernière intervention
14 janvier 2014
-
23 nov. 2010 à 06:31
Steevy - 23 nov. 2010 à 11:32
Steevy - 23 nov. 2010 à 11:32
A voir également:
- Contrainte de type en sql
- Blob sql ✓ - Forum Webmastering
- Sql (+) - Forum Programmation
- Incompatibilité de type vba ✓ - Forum Programmation
- Sql commence par ✓ - Forum Webmastering
- Type lnb nilesat - Forum Cinéma / Télé
2 réponses
j'ai pas très bien compris ce que tu essaye de faire
//CHANGE ADRESSE ACTUELLE PAR UNE NOUVELLE
$id = "$_GET[id]";
mysql_query ("UPDATE matable SET adresse = ".$_POST["adresse"]." WHERE id = $id");
//AJOUTE UNE CONTRAINTE A CELLE EXISTANTE
$id = "$_GET[id]";
$contrainte="$_POST[contrainte]";
mysql_query("UPDATE matable SET contrainte = contrainte ADD $contrainte WHERE id = $id");