Programme php et erreur suite à $list
Résolu/Fermé
ANTHURIUMRE
-
16 juil. 2010 à 15:17
Breub62 Messages postés 2989 Date d'inscription lundi 7 juin 2010 Statut Membre Dernière intervention 17 avril 2014 - 16 juil. 2010 à 16:25
Breub62 Messages postés 2989 Date d'inscription lundi 7 juin 2010 Statut Membre Dernière intervention 17 avril 2014 - 16 juil. 2010 à 16:25
A voir également:
- Programme php et erreur suite à $list
- Erreur 0x80070643 - Guide
- List disk - Guide
- Programme demarrage windows 10 - Guide
- Erreur 38 free ✓ - Forum Mobile
- Programme (x86) ✓ - Forum Windows
1 réponse
Breub62
Messages postés
2989
Date d'inscription
lundi 7 juin 2010
Statut
Membre
Dernière intervention
17 avril 2014
369
16 juil. 2010 à 15:24
16 juil. 2010 à 15:24
Essaie de remplacer
echo"<td>$list->id</td>";par
echo"<td>".$list->id."</td>";
16 juil. 2010 à 15:47
Notice: Undefined property: stdClass::$id in C:\Program Files\EasyPHP-5.3.2i\www\exemplENI.php on line 28
16 juil. 2010 à 15:49
16 juil. 2010 à 15:55
16 juil. 2010 à 15:58
16 juil. 2010 à 16:05
<?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>";
?>