<?php include("admin/db.php");
$recipients = "SELECT * FROM recipients ORDER BY id DESC";
$email_list = $db->query($recipients);
foreach($email_list as $row) {
echo $row['email'].",";
}
$to = "?";
?>
Above I have a comma delimitated list of emails which I need to insert into the $to variable. How do I do this?