Cursorposition im PDO zurücksetzen
$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
}
Ich weiß, dass es nicht nötig ist, Daten zweimal abzurufen. Aber meine Hauptfrage ist, wie man die Cursorposition im PDO zurücksetzt.