I am trying to make an email list based on the values in fields, if the field = 1 their email address will be added to the email list.
Here is some of what I am at:
$email4hotspot = $row6["email_4_hotspot"];
if($email4hotspot == '1'){
$email = $row6["email_4"];
}
$email4hotspot = $row6["email_4_hotspot"];
if($email4hotspot == '1'){
$email = $row6["email_4"];
}
$email5hotspot = $row6["email_5_hotspot"];
if($email5hotspot == '1'){
$email = $row6["email_5"];
}
$allemail = implode(",",$email);
}
Thanks in advance.