Repor a posição do cursor no PDO
$data=$stmt->fetchAll(); //Dumping the data shows the result. It is also setting the cursor at the end
while($data=$stmt->fetch())
{
//Does not enters loop
//If fetchAll() removes it work as usual
}
Eu sei que não precisa buscar dados duas vezes. Mas a minha principal questão é Como redefinir a posição do cursor no PDO?