Fatal error: Uncaught Error: Call to a member function query()
Résolu/Fermé
chabinot
Messages postés
327
Date d'inscription
mardi 10 novembre 2015
Statut
Membre
Dernière intervention
27 août 2023
-
20 nov. 2017 à 13:54
chabinot Messages postés 327 Date d'inscription mardi 10 novembre 2015 Statut Membre Dernière intervention 27 août 2023 - 20 nov. 2017 à 17:26
chabinot Messages postés 327 Date d'inscription mardi 10 novembre 2015 Statut Membre Dernière intervention 27 août 2023 - 20 nov. 2017 à 17:26
A voir également:
- Uncaught error: call to a member function
- Fatal error: uncaught error: call to a member function - Meilleures réponses
- Fatal error: uncaught error: call to a member function query() on null - Meilleures réponses
- Fan error lenovo ✓ - Forum Refroidissement
- Cam to cam - Forum Réseaux sociaux
- Qwerty to azerty - Guide
- Uncaught error: call to a member function fetch() on bool ✓ - Forum PHP
- A disk read error occurred ✓ - Forum Windows
3 réponses
jordane45
Messages postés
37851
Date d'inscription
mercredi 22 octobre 2003
Statut
Modérateur
Dernière intervention
1 décembre 2023
4 609
20 nov. 2017 à 15:38
20 nov. 2017 à 15:38
Bonjour,
Commence par ça :
https://forums.commentcamarche.net/forum/affich-37584941-php-pdo-gerer-les-erreurs
(en ajoutant, aussi bien dans ta connexion PDO que pour CHAQUE requête un bloc TRY/CATCH )
Et au passage .... A quel endroit, dans ton fichier index.view.php instancies tu la class Database ?
Car là .. ta variable $bdd est "null" d'où ton message d'erreur....
Commence par ça :
https://forums.commentcamarche.net/forum/affich-37584941-php-pdo-gerer-les-erreurs
(en ajoutant, aussi bien dans ta connexion PDO que pour CHAQUE requête un bloc TRY/CATCH )
Et au passage .... A quel endroit, dans ton fichier index.view.php instancies tu la class Database ?
Car là .. ta variable $bdd est "null" d'où ton message d'erreur....