What are some best practices for handling and displaying multiple database query results in PHP?

When handling and displaying multiple database query results in PHP, it is best practice to loop through each result set and display the data accordingly. This can be achieved using a while loop to iterate over each row in the result set and display the desired information.

// Assuming $results is an array of database query results
foreach ($results as $result) {
    // Display data from each row
    echo $result['column1'] . ' - ' . $result['column2'] . '<br>';
}