PHP and HTML Tables


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.


You need a proper query, not multiple foreach loops.


Thanks for your reply. I am using FileMaker as the database, and I am not sure how familiar you are with it, but the only way to query data from each table is to use a foreach and you can only grab one table at a time. In this lies my problem…