14 lines
384 B
PHP
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>
|