$allusersemail=''; $conn = $GLOBALS["Conn"]; $sql = "SELECT DISTINCT EmplloyEmail FROM Notifications WHERE Jlsat = 1 "; $rows = $conn->executeQuery($sql)->fetchAll(); foreach ($rows as $row) { $allusersemail .= $row['EmplloyEmail'].','; }
what i do with the code how i change it ?