Pb de mofication sur la BDD
			
		
	 
	
	
		Arf, ben enfaite la j'ai reessaier mais sa m'afficher rien et sa modifie rien :/	
			WeBy ou WeBmInOu pour les intîmes ^^
		
			
		
	 
	
	
		Voila le code : 
<?
mysql_connect("serveur", "login", "pass"); // Connexion à MySQL
mysql_select_db("bdd"); // Sélection de la base
$sql = 'UPDATE team SET nom="'.$_POST['nom'].'", age= "'.$_POST['age'].'", localisation="'.$_POST['localisation'].'", anniversaire="'.$_POST['anniversaire'].'", mail="'.$_POST['mail'].'", msn="'.$_POST['msn'].'", fonction="'.$_POST['fonction'].'", html="'.$_POST['html'].'", php="'.$_POST['php'].'", css="'.$_POST['css'].'", photoshop="'.$_POST['photoshop'].'", flash="'.$_POST['flash'].'" WHERE ID="'.$_GET['id'].'"'; 
mysql_query($sql) or die (mysql_error(erreur requete)); 
mysql_close();
?>
Cela me marque : 
Parse error: parse error in /var/www/free.fr/d/3/haegel.j/webman/administration/modifier_team_traitement.php on line 5
WeBy ou WeBmInOu pour les intîmes ^^
				
				
		
			
		
	 
	
		le 11/01/2004 à 12:51
		Layer
	 
	
		
<?php
mysql_connect("serveur", "login", "pass"); // Connexion à MySQL
mysql_select_db("bdd"); // Sélection de la base
$sql = 'UPDATE team SET nom="'.$_POST['nom'].'", age= "'.$_POST['age'].'", localisation="'.$_POST['localisation'].'", anniversaire="'.$_POST['anniversaire'].'", mail="'.$_POST['mail'].'", msn="'.$_POST['msn'].'", fonction="'.$_POST['fonction'].'", html="'.$_POST['html'].'", php="'.$_POST['php'].'", css="'.$_POST['css'].'", photoshop="'.$_POST['photoshop'].'", flash="'.$_POST['flash'].'" WHERE ID="'.$_GET['id'].'"';
mysql_query($sql) or die (mysql_error());
mysql_close();
?>
mysql_error() et non mysql_error(erreur requete)	
 
			Error 500 : internal brain error
		
			
		
	 
	
	
		Là il m'afficher rien, pas d'erreur mais sa modifie toujours pas ... chui désésperer ! 
 
	WeBy ou WeBmInOu pour les intîmes ^^
		
			
		
	 
	
	
		Et le echo $sql donne quoi ?	
	
			
		
	 
	
	
		? désoler la j'ai pas compris la Globule ><	
			WeBy ou WeBmInOu pour les intîmes ^^
		
			
		
	 
	
		le 11/01/2004 à 19:43
		Layer
	 
	
		[/code]<?php
$sql = 'UPDATE team SET nom="'.$_POST['nom'].'", age= "'.$_POST['age'].'", localisation="'.$_POST['localisation'].'", anniversaire="'.$_POST['anniversaire'].'", mail="'.$_POST['mail'].'", msn="'.$_POST['msn'].'", fonction="'.$_POST['fonction'].'", html="'.$_POST['html'].'", php="'.$_POST['php'].'", css="'.$_POST['css'].'", photoshop="'.$_POST['photoshop'].'", flash="'.$_POST['flash'].'" WHERE ID="'.$_GET['id'].'"';
echo $sql;
?> [/code]	
			Error 500 : internal brain error
		
			
		
	 
	
	
		Relis les posts du haut.
Pourtant, tu m'as dit que tu l'avais fait :/	
	
			
		
	 
	
	
		Ben si je fait echo $sql; sa me marque : 
UPDATE team SET nom="df", age= "df", localisation="dfgd", anniversaire="fgdfg", mail="dfgd", msn="fgdfg", fonction="dfgdfg", html="dfg", php="dfg", css="dfg", photoshop="dfg", flash="dfg" WHERE ID="$_GET[id]"
WeBy ou WeBmInOu pour les intîmes ^^
		
			
		
	 
	
	
		Ahhhhhhhhh 
 
Ben voila.
Et tu ne vois pas ce qui cloche ?
Ton $_GET['id'] doit etre mal concaténé vu que PHP ne l'interprete pas.