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

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’]}”;

1 Like
Sponsor our Newsletter | Privacy Policy | Terms of Service