I noticed PDO::FETCH_INTO
fetch mode doesn't work inside PDOStatement::fetch()
but in the manual it says you can use PDO::FETCH_INTO
with PDOStatement::fetch()
.
I was trying to do: $query->fetch( PDO::FETCH_INTO, $user );
This returns: PDOStatement::fetch() expects parameter 2 to be long, object given
Wouldn't that mean the manual is kind of misleading? And what would be the proper way of using PDO::FETCH_INTO
in this case?