Hello,
I am not really sure how to go about this, but it seems very possible.
I have two tables in the same database. In the first table I want to find all sellers in a given state. I know how to do this. Then I want to find all products for all the sellers that match that state. I can do this as well. The problem I am seeing is that I will have a separate array for each seller containing his products. I would like to put it into a single array so I can format the results in a table. I am thinking I may use array_merge(), but I have no idea how to use this.
Here is what I have going on.
connect to database.
select all sellers in a given state using while loop.
using a while loop again, select all products for that seller
merge the data into one array
format into a html table
The last two steps I am unsure of. I know how to format into the table, but not with the new array. Would I use a while loop again? Any help is appreciated.
Cheers!