Notice : PHP erreur.

Fermé
Faw - Modifié par Faw le 28/03/2015 à 15:12
NHenry Messages postés 15113 Date d'inscription vendredi 14 mars 2003 Statut Modérateur Dernière intervention 22 avril 2024 - 28 mars 2015 à 17:04
Bonjour,
J'ai un probléme avec un site pouvez vous m'aidez ?

Notice: Undefined variable: image in C:\wamp\www\FaceShack\index.php on line 90
et
Notice: Trying to get property of non-object in C:\wamp\www\FaceShack\index.php on line 90

<? foreach($top_ratings as $key => $image) : ?>
  <td valign="top"><img src="images/<?=$image->filename?>" width="70" /></td>
  <? endforeach ?>


Dans ce cas la ligne 90 est la ligne 2.

Merci.

1 réponse

NHenry Messages postés 15113 Date d'inscription vendredi 14 mars 2003 Statut Modérateur Dernière intervention 22 avril 2024 331
28 mars 2015 à 17:04
Le message est limpide pourtant, $image n'est pas un objet.
0