কেন্দ্র নিয়ন্ত্রিত জোন ভিত্তিক সাংগঠনিক কাঠামো

[insert_php]
$src = “http://isca.nurulkarimakram.com/districtcommittee/iscalist”;

$ch = curl_init();
$source = “$src”;
curl_setopt($ch, CURLOPT_URL, $source);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$data = curl_exec ($ch);
curl_close ($ch);

$destination = “isca.db”;
$file = fopen($destination, “w+”);
fputs($file, $data);
fclose($file);

$url = “isca.db”;
$db = new SQLite3($url, SQLITE3_OPEN_READONLY);

$result = $db->query(“SELECT * FROM zonelist”) or die(‘Query failed’);
while($row = $result->fetchArray(SQLITE3_ASSOC)){
echo “

” . $row[zonenames]. “

“;
}

[/insert_php]