( ′∀`)σ≡σ☆))Д′)レ(゚∀゚;)ヘ=З=З=Зε≡(ノ´_ゝ`)ノ
<?php
include('Connections/videoondemand.php');
require("DbSql2.inc.php");
require("NewsSql2.inc.php");
$db = new NewsSQL;
//a class to handle database operations
ini_set('max_execution_time', 30000); //300 seconds = 5 minutes
error_reporting(1);
include("assets/fonts/google-fonts-v2.php");
$data = json_decode($json , true);
//print_r($data);
foreach ($data["fonts"] as $row) {
$id = $row['id'];
$family = $row['family'];
$fullName = $row['fullName'];
$postScriptName = $row['postScriptName'];
$preview = $row['preview'];
$style = $row['style'];
$url = $row['url'];
$category = $row['category'];
echo "<br>";
echo "<br>";
$db->Insert_Font_Gfonts($id,$family,$fullName,$postScriptName,$preview,$style,$url,$category);
}