voici le code source
<?php
$thematique = $_POST['thematique'];
$indicateur = $_POST['indicateur'];
$periode = $_POST['periode'];
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>
mon problème est que je n'arrive pas a sélectionner les informations qui doivent d'afficher