Initial Commit

This commit is contained in:
Frank John Begornia
2019-03-06 20:32:31 +08:00
commit 562f03488a
2123 changed files with 780991 additions and 0 deletions

View File

@@ -0,0 +1,30 @@
<?php
header("Content-type: text/css; charset: UTF-8");
// database connection
$host = "localhost";
$username = "root";
$password = "";
$db = "custom_design";
// database connection
try{
$conn = new PDO("mysql:host=$host;dbname=$db",$username,$password);
$conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
}
catch(PDOException $pe)
{
die('Connection error, because: ' .$pe->getMessage());
}
$q = $conn->prepare("SELECT cssValues FROM fonts");
$q->execute();
while ($row = $q->fetch()) {
echo '@font-face {';
echo $row['cssValues'];
echo '}';
}
?>