First Commit

This commit is contained in:
mark committed 2026-10-19 15:22:52 -07:00
1 parent 5eb9dd037d
commit 2e62c0e60b
11877 files changed
+2035312

No files matched your search

+34
View File
@@ -0,0 +1,34 @@
<?php
include "db.php";
$school_num = 403;
$query = "SELECT p.record_num,category_num FROM people AS p, people_categories AS pc " .
"WHERE p.school_num = $school_num " .
"AND pc.school_num = $school_num " .
"AND pc.people_num = p.record_num " .
"AND pc.category_num IN (23,24,25) " .
"ORDER BY category_num";
$students = db_query($query);
while ($row = db_fetch_assoc($students)) {
extract($row);
switch ($category_num) {
case 23:
$meal_location = 7949;
break;
case 24:
$meal_location = 7945;
break;
case 25:
$meal_location = 7947;
break;
}
db_query("UPDATE people SET meal_location = $meal_location WHERE record_num = $record_num");
}
?>