Files
HotLunches/schools-new.php
2026-10-19 15:22:52 -07:00

14 lines
384 B
PHP

<pre>
<?php
include "db.php";
$start = date("Y-m-d",time() - 60 * 60 * 24 * 120);
$schools = db_query("SELECT school_name,city,province,substr(start_date,0,7) AS start_month FROM schools WHERE status = 'Active' AND start_date > '$start' ORDER BY start_date ASC");
while ($row = db_fetch_array($schools)) {
extract($row);
echo("$school_name - $city, $province\n");
}
?>
</pre>