Zresetuj pozycję kursora w 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
}
Wiem, że nie ma potrzeby dwukrotnego pobierania danych. Ale moje główne pytanie brzmi: Jak zresetować pozycję kursora w PDO?