First Commit
This commit is contained in:
1 parent
5eb9dd037d
commit
2e62c0e60b
11877 files changed
+2035312
No files matched your search
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
include "db.php";
|
||||
|
||||
$query = "select school_name, status, url, linked_site, record_num from schools where status = 'Deleted' and linked_site > 0";
|
||||
$schools = db_query($query);
|
||||
|
||||
while ($row = db_fetch_assoc($schools)) {
|
||||
extract($row);
|
||||
|
||||
$school_num = $record_num;
|
||||
// echo("$school_name\n");
|
||||
|
||||
$linkedSchool = db_getVal("SELECT * FROM schools WHERE record_num = $linked_site");
|
||||
$linkedStatus = $linkedSchool['status'];
|
||||
if ($linkedStatus == 'Active') {
|
||||
echo("$school_name $school_num -> ".$linkedSchool['school_name']." $linkedStatus $linked_site\n");
|
||||
echo(" - $url -> ".$linkedSchool['url']."\n");
|
||||
db_query("UPDATE schools SET status = 'Linked' WHERE record_num = $school_num");
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
Reference in new issue
Block a user