HElp(2) ) php

Résolu/Fermé
jalalnet Messages postés 350 Date d'inscription   Statut Membre Dernière intervention   -  
Ricky38 Messages postés 5776 Date d'inscription   Statut Contributeur Dernière intervention   -
Bonjour,
j'aimerai connaitre comment faire pour récupéré le résulat d'un requete sql SELECT COUNT
voila mon code

$req = $bdd->prepare('SELECT COUNT (*) FROM authentification WHERE pseudo=? and password=?');
$req->execute(array($_POST['pseuddo'], $_POST['passwordd']));

echo $req;

mais ce derneir renvoie un string je pense

1 réponse