I could probably figure this out but it would likely be sloppy and an embarrassment. So maybe someone will help me…
Here is what I need to do (all in same database):
-
Search table for userid
$result = mysqli_query($db,“SELECT userid FROM TABLE1 where listid=‘6’”); -
Search another table for email based on userid
$result = mysqli_query($db,“SELECT email FROM TABLE2 where id=”$userid""); -
Search another table for the users name
$result = mysqli_query($db,“SELECT name FROM TABLE3 where id=”$userid""); -
Use $name & $email to send an email to each individual in the database
REPEAT until there are no additional values for query #1
Thanx