I am trying to take a list of things to match, loop through and match each one in a query, make an array of data that matches a specific set of criteria (so for instance one name with multiple addresses), and then put it into the database.
Name 1
{ address: #,
phone: #,
date of movein}
{ address: #,
phone: #,
date of movein}
{ address: #,
phone: #,
date of movein}
Name 2
{ address: #,
phone: #,
date of movein}
{ address: #,
phone: #,
date of movein}
{ address: #,
phone: #,
date of movein}
How can I set up the for-loop or other structure to extract the data? And then parse it into the database.
I watched this example: https://www.youtube.com/watch?v=cxgrRgfz2VI but it doesn't really explain how they set up the arrays in the first place.