First Commit
This commit is contained in:
1 parent
5eb9dd037d
commit
2e62c0e60b
11877 files changed
+2035312
No files matched your search
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
|
||||
include "db.php";
|
||||
|
||||
$query = "SELECT distinct school_num, ordered_by_num, schedule_num FROM hotlunch_order_items WHERE order_num = 0 order by school_num";
|
||||
$orders = db_query($query);
|
||||
while ($row = db_fetch_assoc($orders)) {
|
||||
extract($row);
|
||||
$school = db_getVal("SELECT school_name FROM schools WHERE record_num = $school_num");
|
||||
$name = db_getVal("SELECT concat(first_name,' ',last_name) FROM people WHERE record_num = $ordered_by_num");
|
||||
$schedule = db_getVal("SELECT schedule_name FROM hotlunch_schedules WHERE record_num = $schedule_num");
|
||||
echo("$school_num: $school - $schedule - $name\n");
|
||||
}
|
||||
|
||||
?>
|
||||
Reference in new issue
Block a user