SOS Call to a member function fetch() on a non-object in ligne
Résolu
djamelpsy
Messages postés
17
Statut
Membre
-
djamelpsy Messages postés 17 Statut Membre -
djamelpsy Messages postés 17 Statut Membre -
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
- Reboot to bootloader - Guide
- Majuscule to minuscule - Guide
- Mb to mo ✓ - Forum Matériel & Système
Explications disponibles ici : https://codes-sources.commentcamarche.net/faq/10686-le-nouveau-codes-sources-comment-ca-marche#balises-code