PHP For loop with differents IDsUse fetch_assoc() to iterate through the rows and access IDs directly.