28 lines
853 B
PHP
28 lines
853 B
PHP
|
<?php
|
|||
|
// require_once(dirname(__FILE__) ."/app/library/Database.php");
|
|||
|
// require_once(dirname(__FILE__) ."/app/library/DatabaseConfig.php");
|
|||
|
// use App\Library\Database;
|
|||
|
// use App\Library\DatabaseConfig;
|
|||
|
|
|||
|
// $dbOpendata = new Database(new DatabaseConfig('opendata'));
|
|||
|
// $sql = 'SELECT DISTINCT org_id FROM sveden_education_contingent';
|
|||
|
// $org = $dbOpendata->selectQuery($sql);
|
|||
|
// $orgs = [];
|
|||
|
// foreach ($org as $o) {
|
|||
|
// $orgs[] = $o['org_id'];
|
|||
|
// }
|
|||
|
// unset($org);
|
|||
|
|
|||
|
// print_r($orgs);
|
|||
|
|
|||
|
// $filename = 'error-html.log';
|
|||
|
// $array = file($filename);
|
|||
|
// for ($i = 0; $i < count($array); $i++) {
|
|||
|
// $arr = explode(' ', $array[$i]);
|
|||
|
// if (!in_array($arr[2], $orgs)) {
|
|||
|
// //file_put_contents(__DIR__ . '/error-html2.log', $array[$i], FILE_APPEND);
|
|||
|
// }
|
|||
|
// }
|
|||
|
|
|||
|
var_dump("eduLеvel" != "eduLevel");
|
|||
|
var_dump("eduCode" == "eduCode");
|