Parse error: syntax error,unexpected T_STRING

Résolu
estopatte -  
rabab_23 Messages postés 13 Statut Membre -
Bonjour, j'ai un probleme avec ce message d'erreur, j'ai bien regardé et je vois pas où se trouve mon erreur, si vous pouvez m'aider s'il vous plait !

Le message complet :
Parse error: syntax error, unexpected T_STRING in /iut/src2/ennesser/public_html/stage/glossaire/ajout_mot-pg.php on line 19

<html>
<head>
<title></title>
</head>
<body>
<?php
if(isset($_GET["mot"])) $mot=$_GET["mot"]; else $mot="";
if(isset($_GET["mot_corresp1"]))$mot_corresp1=$_GET["mot_corresp1"]; else $mot_corresp1="";
if(isset($_GET["mot_corresp2"]))$mot_corresp2=$_GET["mot_corresp2"]; else $mot_corresp2="";
if(isset($_GET["mot_corresp3"]))$mot_corresp3=$_GET["mot_corresp3"]; else $mot_corresp3="";

if(isset($_GET["liste"]))$liste=$_GET["liste"]; else $liste="";
if(isset($_GET["liste_mots"]))$liste_mots=$_GET["liste_mots"]; else $liste_mots="";

if(isset($_GET["liste_corresp1"]))$liste_corresp1=$_GET["liste_corresp1"]; else $liste_corresp1="";
if(isset($_GET["liste_corresp2"]))$liste_corresp2=$_GET["liste_corresp2"]; else $liste_corresp2="";
if(isset($_GET["liste_corresp3"]))$liste_corresp3=$_GET["liste_corresp3"]; else $liste_corresp3="";

if(($liste='F') pg_Exec($c,'INSERT INTO mot_france (mot_F) VALUES ("$mot");'));
if(($liste='G') pg_Exec($c,'INSERT INTO mot_germany (mot_G) VALUES ("$mot");'));
if(($liste='I') pg_Exec($c,'INSERT INTO mot_italy (mot_I) VALUES ("$mot");'));
if(($liste='SP') pg_Exec($c,'INSERT INTO mot_spain (mot_SP) VALUES ("$mot");'));

if(($liste_corresp1="F") pg_Exec($c,"INSERT INTO mot_france (mot_F) VALUES ('$mot_corresp1');"));
if(($liste_corresp1="G") pg_Exec($c,"INSERT INTO mot_germany (mot_G) VALUES ('$mot_corresp1');"));
if(($liste_corresp1="I") pg_Exec($c,"INSERT INTO mot_italy (mot_I) VALUES ('$mot_corresp1');"));
if(($liste_corresp1="SP") pg_Exec($c,"INSERT INTO mot_spain (mot_SP) VALUES ('$mot_corresp1');"));

if(($liste_corresp2="F") pg_Exec($c,"INSERT INTO mot_france (mot_F) VALUES ('$mot_corresp2');"));
if(($liste_corresp2="G") pg_Exec($c,"INSERT INTO mot_germany (mot_G) VALUES ('$mot_corresp2');"));
if(($liste_corresp2="I") pg_Exec($c,"INSERT INTO mot_italy (mot_I) VALUES ('$mot_corresp2');"));
if(($liste_corresp2="SP") pg_Exec($c,"INSERT INTO mot_spain (mot_SP) VALUES ('$mot_corresp2');"));

if(($liste_corresp3="F") pg_Exec($c,"INSERT INTO mot_france (mot_F) VALUES ('$mot_corresp3');"));
if(($liste_corresp3="G") pg_Exec($c,"INSERT INTO mot_germany (mot_G) VALUES ('$mot_corresp3');"));
if(($liste_corresp3="I") pg_Exec($c,"INSERT INTO mot_italy (mot_I) VALUES ('$mot_corresp3');"));
if(($liste_corresp3="SP") pg_Exec($c,"INSERT INTO mot_spain (mot_SP) VALUES ('$mot_corresp3');"));

?>
<br> <a href=saisie_pg.html> Retour</a>
</body>
</html>

2 réponses

estopatte
 
bon, enfait c'est bon j'ai trouvé !
0
rabab_23 Messages postés 13 Statut Membre
 
bonjour,
j'ai meme erreur et je je ne sais pas c'est quoi le probleme?

c'etait quoi votre probleme et que ce que vous vez corrigé?

Merci d'avance
-1