Is there any kind of conflict with rowCount? The sentence I understand is fine, and I'm using PDO, which also did not give me problems before.
The field in the database is VARCHAR2.
I attach my code:
$user = 'pepito'
$con = connection();
$statement = $con->prepare("SELECT name FROM usuarios WHERE name = :usu");
$statement->bindParam(':usu', $user);
$statement->execute();
//Con este contador, devielve 1 si encuentra el usuario
$contador = $statement->rowCount();
The counter returns 0, when I would have to return 1.