First Commit
This commit is contained in:
1 parent
5eb9dd037d
commit
2e62c0e60b
11877 files changed
+2035312
No files matched your search
@@ -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");
|
||||
}
|
||||
|
||||
?>
|
||||
Reference in new issue
Block a user