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

16 lines
403 B
PHP

<?php
include "db.php";
$query = "SELECT count(distinct user_num) FROM hotlunch_order_header AS hloh, people AS p " .
"WHERE hloh.school_num = 401 " .
"AND p.school_num = 401 " .
"AND hloh.ordered_by_num = p.record_num " .
"AND hloh.ordered_by_type != 'Concession' " .
"AND hloh.schedule_num = 71277";
$num = db_getVal($query);
echo("Users: $num\n");
?>