Erreur de $end

Résolu/Fermé
cestmoipaslui Messages postés 25 Date d'inscription jeudi 29 mars 2012 Statut Membre Dernière intervention 6 février 2017 - 16 juil. 2014 à 21:30
 Utilisateur anonyme - 16 juil. 2014 à 22:31
Bonjour,
J'ai un problème avec ce code la page me dit:
Parse error: syntax error, unexpected $end in /cible.php on line 91
Je ne vois plus ce que j'ai oublié.
Merci d'avance

<?php
  
   	$rep=$bdd->prepare("SELECT * FROM Clubs WHERE Cercle LIKE ?");
	$rep->execute(array("%$_POST[Club]%"));
 
    while ($row=$rep->fetch()){
?> 

 <table width="450" border="5" cellspacing="3">
  <tr>
    <th width="150" scope="col">Indice</th>
    <th width="273" scope="col"><?php echo $row['Indice']?></th>
  </tr>
  <tr>
    <th>Cercle</th>
    <th> <?php echo $row['Cercle']?></th>
  </tr>
  <tr>
    <th>Local</th>
    <th><?php echo $row['Local']?></th>
  </tr>
  <tr>
    <th>Adresse</th>
    <th><?php echo $row['Adresse']?></th>
  </tr>
  <tr>
    <th>Code Postal</th>
    <th><?php echo $row['CP']?></th>
  </tr>
  <tr>
    <th>Ville</th>
    <th><?php echo $row['Ville']?></th>
  </tr>
  <tr>
    <th>Téléphonne Local</th>
    <th><?php echo $row['Telephonne']?></th>
  </tr>
  <tr>
    <th>Jour de jeu</th>
    <th><?php echo $row['JourJeu']?></th>
  </tr>
  <tr>
    <th>Jour entraînement</th>
    <th><?php echo $row['Jourentr']?></th>
  </tr>
  <tr>
    <th>Nombre d'équipe</th>
    <th><?php echo $row['NbreEquipe']?></th>
  </tr>
  <tr>
    <th>Equipe de vétérans</th>
    <th><?php echo $row['Equipeveteran']?></th>
  </tr>
  <tr>
    <th>Jour jeu vétérans</th>
    <th><?php echo $row['Jourjeuvet']?></th>
  </tr>
 }
</table>

 <?php
$rep->closeCursor();
?>

</body>
</html>


2 réponses

Utilisateur anonyme
16 juil. 2014 à 21:58
Bonjour

ligne 58, tu as une accolade } qui est en plein html alors que c'est du php.
Encadre-la de <?php et ?>
0
cestmoipaslui Messages postés 25 Date d'inscription jeudi 29 mars 2012 Statut Membre Dernière intervention 6 février 2017 5
16 juil. 2014 à 22:11
Merci beaucoup c'était bien cela encore merci
0
Utilisateur anonyme
16 juil. 2014 à 22:31
Finalement, tu as raison, c'était bien toi, pas lui ^^
0