Files
HotLunches/contact.list.php
T
2026-10-19 15:22:52 -07:00

17 lines
588 B
PHP

<?php
include "db.php";
// Get primary contact email address
$results = db_query("select contact_email from schools where status in ('Pending','Trial','Active') and contact_email is not null and contact_email > ''");
while ($row = db_fetch_array($results)) {
echo($row['contact_email'] . "\n");
}
// Get secondary contact email address
$results = db_query("select contact2_email from schools where status in ('Pending','Trial','Active') and contact2_email is not null and contact2_email > ''");
while ($row = db_fetch_array($results)) {
echo($row['contact2_email'] . "\n");
}
?>