I have an Sql database setup where the e-mail address is compared. If the e-mail address matches then I pull out the Company name, and Name associated with that e-maill address.
Ex.
example@example.com, John Smith, Quick Company
The following is the rest of the code which will then goto a .php script inside the directories of that Company -> Name
$base_path = '/var/www/vhosts/default/htdocs/Members/';
$path = $base_path . trim($row['company']) . '/Users/' . trim($row['name']) . '/Upload/';
$zip_processing_file = $path . 'zip.php';
require_once "$zip_processing_file";
My problem is this. If I have 2 emails sitting in my inbox, one from test@example.com and another from test2@example.com.
Whichever email is the newest, that is the directory that this script will take me too. Is there a way to get both .php scripts for test & test2 processed?
Thanks!