Programme php et erreur suite à $list
Résolu
ANTHURIUMRE
-
Breub62 Messages postés 2989 Date d'inscription Statut Membre Dernière intervention -
Breub62 Messages postés 2989 Date d'inscription Statut Membre Dernière intervention -
A voir également:
- Programme php et erreur suite à $list
- List disk - Guide
- Programme demarrage windows - Guide
- Directory list & print - Télécharger - Divers Utilitaires
- Mettre en veille un programme - Guide
- Message programmé iphone - Guide
Notice: Undefined property: stdClass::$id in C:\Program Files\EasyPHP-5.3.2i\www\exemplENI.php on line 28
<?php
include ("fichier.inc");
$cnx=mysqli_connect($host,$user,$password,$database)
or die ("connexion au serveur impossible");
//Sélectionne toutes les catégories dans la table adherents
$req = "SELECT * FROM adhrts";
$result = mysqli_query($cnx,$req)
or die ("Exécution de la sélection impossible");
echo"<table border=1 align='center'>";
echo"<tr>";
echo"<td>N°</td>";
echo"<td>Photo</td>";
echo"<td>Identité</td>";
echo"<td>Statut</td>";
echo"<td>Inscrit</td>";
echo"</tr>";
while($list=mysqli_fetch_object($result))
{
echo"<tr>";
echo"<td>$list->id</td>";
echo"<td>".stripslashes($list->photo)."</td>";
echo"<td>".stripslashes($list->identité)."</td>";
echo"<td>".stripslashes($list->statut)."</td>";
echo"<td>".stripslashes($list->inscrit)."</td>";
echo"</tr>";
}
echo "</table>";
?>