How can I loop through mysql query results and display table rows?


#21

Aside from using a proper IDE you can avoid that nasty escaping in and out and just do like so. Much cleaner and far less prone to making errors.

echo “id: {$row[‘CustomerID’]} - Name: {$row[‘first_name’]} {$row[‘last_name’]}”;