par
assi » 22 nov. 2018, 13:09
salut les gars j'ai un souci avec mon code voici ce que affiche mon navigateur lors de l’exécution de mon code merci de m'aider
voici le message d'erreur :
Parse error: syntax error, unexpected end of file in C:\wamp\www\ProjetIndicateur2018\selection.php on line 102
voici le code php:
<!DOCTYPE html>
<html>
<head>
<title>bar de connexion</title>
</head>
<body>
<?php
session_start();
include_once('bd_indicateur.php');
?>
<?php
$thematique = $_POST['thematique'];
$indicateur = $_POST['indicateur'];
$periode = $_POST['periode'];
$zone_geographique = $_POST['zone_geographique'];
if(!empty(htmlspecialchars($thematique)) OR
!empty(htmlspecialchars($indicateur)) OR
!empty(htmlspecialchars($periode)) OR
!empty(htmlspecialchars($zone_geographique))){
$req = $bdd ->prepare('SELECT * FROM thematique');
$reset['thematique']=$req->execute();
$req = $bdd ->prepare('SELECT * FROM indicateur');
$reset['indicateur']=$req->execute();
$req = $bdd ->prepare('SELECT * FROM periode');
$reset['periode']=$req->execute();
$req = $bdd ->prepare('SELECT * FROM zone_geographique');
$reset['zone_geographique']=$req->execute();
}
?>
<?php
if (is_null($reset)) {
for ( $i==0; $i< $reset['thematique'].length; $i++ ) {
echo "$reset";
} }
?>
<?php
if (is_null($reset)) {
for ( $i==0; $i< $reset['indicateur'].length; $i++) {
echo "$reset";
} }
?>
<?php
if (is_null($reset)) {
for ( $i==0; $i< $reset['periode'].length; $i++) {
echo "$reset";
} }
?>
<?php
if (is_null($reset)) {
for ( $i==0; $i< $reset['zone_geographique'].length; $i++) {
echo "$reset";
} }
?>
<?php while($reset=$req->fetch()) {
print_r($reset);?>
<tr>
<td> <?php echo($reset['thematique']); ?> </td>
<td> <?php echo ($reset['indicateur']); ?> </td>
<td> <?php echo($reset['periode']); ?> </td>
<td> <?php echo ($reset['zone_geographique']); ?> </td>
</tr>
} }
</body>
</html>
merci de me trouver une solution d'avance
salut les gars j'ai un souci avec mon code voici ce que affiche mon navigateur lors de l’exécution de mon code merci de m'aider
voici le message d'erreur :
Parse error: syntax error, unexpected end of file in C:\wamp\www\ProjetIndicateur2018\selection.php on line 102
voici le code php:
<!DOCTYPE html>
<html>
<head>
<title>bar de connexion</title>
</head>
<body>
<?php
session_start();
include_once('bd_indicateur.php');
?>
<?php
$thematique = $_POST['thematique'];
$indicateur = $_POST['indicateur'];
$periode = $_POST['periode'];
$zone_geographique = $_POST['zone_geographique'];
if(!empty(htmlspecialchars($thematique)) OR
!empty(htmlspecialchars($indicateur)) OR
!empty(htmlspecialchars($periode)) OR
!empty(htmlspecialchars($zone_geographique))){
$req = $bdd ->prepare('SELECT * FROM thematique');
$reset['thematique']=$req->execute();
$req = $bdd ->prepare('SELECT * FROM indicateur');
$reset['indicateur']=$req->execute();
$req = $bdd ->prepare('SELECT * FROM periode');
$reset['periode']=$req->execute();
$req = $bdd ->prepare('SELECT * FROM zone_geographique');
$reset['zone_geographique']=$req->execute();
}
?>
<?php
if (is_null($reset)) {
for ( $i==0; $i< $reset['thematique'].length; $i++ ) {
echo "$reset";
} }
?>
<?php
if (is_null($reset)) {
for ( $i==0; $i< $reset['indicateur'].length; $i++) {
echo "$reset";
} }
?>
<?php
if (is_null($reset)) {
for ( $i==0; $i< $reset['periode'].length; $i++) {
echo "$reset";
} }
?>
<?php
if (is_null($reset)) {
for ( $i==0; $i< $reset['zone_geographique'].length; $i++) {
echo "$reset";
} }
?>
<?php while($reset=$req->fetch()) {
print_r($reset);?>
<tr>
<td> <?php echo($reset['thematique']); ?> </td>
<td> <?php echo ($reset['indicateur']); ?> </td>
<td> <?php echo($reset['periode']); ?> </td>
<td> <?php echo ($reset['zone_geographique']); ?> </td>
</tr>
} }
</body>
</html>
merci de me trouver une solution d'avance