I really need help to make it work!!!
Here's my update statement:
$dbh=mysql_connect ("localhost", "xxx", "xxx") or die ('I cannot connect to the database because: ' . mysql_error());
mysql_select_db ("aeromask_members") or die("Could not select database");
$query="UPDATE USERLIST SET NOM='$nom', PRENOM='$prenom', TELEPHONE='$tel', TELEPHONE#2='$tel2', EMAIL='$email', MAAC='$maac', FREQUENCE='$freq', ADRESSE='$add', VILLE='$ville', CODE POSTAL='$cp', STATUT='$stat', INTERET='$int', REALISATION='$real' WHERE MEMBRE='$noid' ";
echo $query;
echo "<br>";
$result = mysql_query($query) or die(mysql_error());
Here's the result of the query
UPDATE USERLIST SET NOM='Leblanc', PRENOM='Daniel', TELEPHONE='xxx-xxx-xxxx', TELEPHONE#2='na', EMAIL='xxx@xxx.com', MAAC='43753', FREQUENCE='32-52', ADRESSE='xxx', VILLE='xxx', CODE POSTAL='xxx', STATUT='na', INTERET='SPAD', REALISATION='Plusieurs SPAD comme 3 DEBONAIR, 2 SPADET et plus' WHERE MEMBRE='16'
AND THE ERROR!!!
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1
Thanks
Dan
Here's my update statement:
$dbh=mysql_connect ("localhost", "xxx", "xxx") or die ('I cannot connect to the database because: ' . mysql_error());
mysql_select_db ("aeromask_members") or die("Could not select database");
$query="UPDATE USERLIST SET NOM='$nom', PRENOM='$prenom', TELEPHONE='$tel', TELEPHONE#2='$tel2', EMAIL='$email', MAAC='$maac', FREQUENCE='$freq', ADRESSE='$add', VILLE='$ville', CODE POSTAL='$cp', STATUT='$stat', INTERET='$int', REALISATION='$real' WHERE MEMBRE='$noid' ";
echo $query;
echo "<br>";
$result = mysql_query($query) or die(mysql_error());
Here's the result of the query
UPDATE USERLIST SET NOM='Leblanc', PRENOM='Daniel', TELEPHONE='xxx-xxx-xxxx', TELEPHONE#2='na', EMAIL='xxx@xxx.com', MAAC='43753', FREQUENCE='32-52', ADRESSE='xxx', VILLE='xxx', CODE POSTAL='xxx', STATUT='na', INTERET='SPAD', REALISATION='Plusieurs SPAD comme 3 DEBONAIR, 2 SPADET et plus' WHERE MEMBRE='16'
AND THE ERROR!!!
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1
Thanks
Dan