I have some old code I want to be able to begin using again but it's in mysql and I'm not sure how to change the equivalent of this into PDO.
if(mysql_num_rows($result) > 0) {
while($row = mysql_fetch_assoc($result)) {
trackstart($row['ID']);
}
}
How can I reach the same outcome with PDO? Or use while row = result for that matter