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

+22
View File
@@ -0,0 +1,22 @@
<?php
if ($argc != 2) {
echo("Error: reseller-schools.php <reseller-code>\n");
exit();
}
include "db.php";
$reseller = $argv[1];
$today = date("Y-m-d",time());
$query = "SELECT school_name, address, city, province FROM schools WHERE status = 'Active' AND reseller = '$reseller' AND expiry_date > '$today' ORDER BY school_name";
$results = db_query($query);
while ($row = db_fetch_assoc($results)) {
extract($row);
// echo("$school_name - $address, $city $province\n");
echo("$school_name\n");
}
?>