I am trying to pull data from a database and display it in a table using a PHP foreach loop. This is successful. But I need to pull data from multiple database tables, forcing me to use multiple foreach loops to create one HTML table. Is this possible? Nesting the foreach loops is not working (displays error) and not nesting them puts my data from the second foreach loop under my first HTML table, not in it.