SOS Call to a member function fetch() on a non-object in ligne
Résolu
djamelpsy
Messages postés
12
Date d'inscription
Statut
Membre
Dernière intervention
-
djamelpsy Messages postés 12 Date d'inscription Statut Membre Dernière intervention -
djamelpsy Messages postés 12 Date d'inscription Statut Membre Dernière intervention -
Bonjour,
Call to a member function fetch() on a non-object in ligne 84
82 <?php
83 $req = $db->query('SELECT name, file_url FORM files');
84 while($data = $req->fetch()){
85 echo $data['name'].' : '.'<a href="'.$data['file_url'].'">Télecharger '.$data['name'].'</a>';
}
?>
Call to a member function fetch() on a non-object in ligne 84
82 <?php
83 $req = $db->query('SELECT name, file_url FORM files');
84 while($data = $req->fetch()){
85 echo $data['name'].' : '.'<a href="'.$data['file_url'].'">Télecharger '.$data['name'].'</a>';
}
?>
A voir également:
- SOS Call to a member function fetch() on a non-object in ligne
- Qwerty to azerty - Guide
- Video to video - Télécharger - Conversion & Codecs
- Majuscule to minuscule - Guide
- A link to the past - Accueil - Guide jeu vidéo
- Bat to exe converter - Télécharger - Édition & Programmation
Explications disponibles ici : https://codes-sources.commentcamarche.net/faq/10686-le-nouveau-codes-sources-comment-ca-marche#balises-code