I have this sample query:
$STH = $DBH->query(\"SELECT id FROM table\");
I want to get the first row and then loop and display all rows.