Restablecer la posición del cursor en DOP
$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
}
Sé que no es necesario obtener datos dos veces. Pero mi pregunta principal es ¿Cómo restablecer la posición del cursor en DOP?