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

+21
View File
@@ -0,0 +1,21 @@
<?php
include "db.php";
$school_num = 374;
$class_num = 8878;
$query = "SELECT * FROM people WHERE school_num = $school_num AND class_num = $class_num";
$students = db_query($query);
while ($row = db_fetch_assoc($students)) {
$student_num = $row['record_num'];
$orders = db_query("SELECT * FROM hotlunch_order_header WHERE school_num = $school_num AND schedule_num = 8191 AND ordered_by_num = $student_num");
while ($row = db_fetch_assoc($orders)) {
$order_num = $row['record_num'];
db_query("DELETE FROM hotlunch_order_items WHERE school_num = $school_num AND schedule_num = 8191 AND order_num = $order_num");
db_query("DELETE FROM hotlunch_order_header WHERE school_num = $school_num AND schedule_num = 8191 AND record_num = $order_num");
}
}
?>