Warning: count(): Parameter must be an array or an object that implements Count
Résolu/Fermé
rolly41
Messages postés
242
Date d'inscription
dimanche 16 novembre 2008
Statut
Membre
Dernière intervention
18 septembre 2023
-
23 mai 2021 à 14:43
rolly41 Messages postés 242 Date d'inscription dimanche 16 novembre 2008 Statut Membre Dernière intervention 18 septembre 2023 - 23 mai 2021 à 23:32
rolly41 Messages postés 242 Date d'inscription dimanche 16 novembre 2008 Statut Membre Dernière intervention 18 septembre 2023 - 23 mai 2021 à 23:32
A voir également:
- Warning: count(): parameter must be an array or an object that implements countable
- Please install an operating system on your hard disk - Forum Matériel & Système
- Unarc.dll returned an error code 11 ✓ - Forum Jeux PC
- An operating system wasn't found try disconnecting any drives that don't contain an operating system - Forum Windows 10
- Shockwave flash object - Télécharger - Divers Web & Internet
- I'm sorry to have to inform you that your message could not be delivered to one or more recipients. it's attached below. ✓ - Forum Mail
1 réponse
jordane45
Messages postés
38137
Date d'inscription
mercredi 22 octobre 2003
Statut
Modérateur
Dernière intervention
17 avril 2024
4 649
Modifié le 23 mai 2021 à 19:01
Modifié le 23 mai 2021 à 19:01
Bonjour,
$req = $pdo->query('SELECT id FROM cat_forum'); $nbr = $req->fetch(); $test = !empty($nbr) ? count($nbr) : 0 ; // IF/ELSE réalisé en écriture TERNAIRE pour s'assurer que la variable existe et n'est pas vide/false/null
23 mai 2021 à 23:32