How do I know the number of records that returned me from a SELECT statement? I tried to use rowCount()
but this did not work in my code, I just want it to return the amount just that.
$contador = $this->con->conectar()->prepare("SELECT * FROM login WHERE 'usuario' =:usuario AND 'senha' =:senha");
$contador->bindPARAM(":usuario", $this->usuario, PDO::PARAM_STR);
$contador->bindPARAM(":senha", $this->senha, PDO::PARAM_INT);
$contador->execute();
echo $contador->rowCount();