First Commit
This commit is contained in:
1 parent
5eb9dd037d
commit
2e62c0e60b
11877 files changed
+2035312
No files matched your search
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
include "db.php";
|
||||
include "table.php";
|
||||
|
||||
db_query("USE hotlunch_prev");
|
||||
|
||||
$query = "SELECT * FROM hotlunch_menu_dates WHERE schedule_num = 8033 ORDER BY menu_date";
|
||||
$results = db_query($query);
|
||||
|
||||
$data = array();
|
||||
while ($row = db_fetch_assoc($results)) {
|
||||
$data[] = $row;
|
||||
echo($row['menu_title']."\n");
|
||||
}
|
||||
|
||||
db_query("USE hotlunch");
|
||||
$hotlunch_menu_dates = new Table("hotlunch_menu_dates");
|
||||
|
||||
for ($i = 0; $i < count($data); $i++) {
|
||||
extract($data[$i]);
|
||||
$query = $hotlunch_menu_dates->BuildUpdate();
|
||||
db_query($query);
|
||||
}
|
||||
|
||||
?>
|
||||
Reference in new issue
Block a user