You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
die("ERROR: Could not connect. " . mysqli_connect_error());
}
$school = $_COOKIE['school'];
$sql = "SELECT email FROM selected WHERE school = '$school'";
$result = $link->query($sql);
if ($result->num_rows > 0) {
// output data of each row
while($row = $result->fetch_assoc()) {
$to = $row["email"];
$subject = "Reminder";
$message = "You ave a session this saturday at " . $school . ". If you will be absent fill the form in the link. Link:https://docs.google.com/forms/d/e/1FAIpQLSddwvuMd54TmYnihp1AKGy5Z18Gixr1dr7vJJ-tGZ92mv_gew/viewform?usp=sf_link";