Files
HotLunches/mtest.php
T
2026-10-19 15:22:52 -07:00

41 lines
1013 B
PHP

<?php
include "db.php";
include "include/school-functions.php";
include "include/date-time.php";
$school_num = 524;
$language = "English";
// Get set of users at this school who want reminders
$users = db_query("SELECT * FROM users WHERE school_num = $school_num " .
$userWhere .
"AND type IN ('Parent','Staff','Administration Team','Schedule Team','Financial Team') " .
"AND status = 'Active' " .
"AND email_reminders != 'N' " .
"AND email != '' " .
"AND email IS NOT NULL");
$num_users = db_num_rows($users);
if ($num_users > 0) {
$total_people = 0;
$total_users = 0;
$skipped_users = 0;
while ($row = db_fetch_assoc($users)) {
extract($row);
$user_num = $record_num;
$msg = getUserOrders($user_num,$school_num);
if (strlen($msg)) {
echo($msg);
echo("================================================================\n");
}
}
}
?>