Example #1
 public function main()
     $db = new Database();
     // подключаем класс работы с базой
     $fetchAll = $db->selectAll('contacts');
     $display = new Display();
     // подключаем класс отвечающий за структуру вывода на экран
     $display->view($fetchAll, 'contacts', null);
Example #2

include 'includes/core/Database.php';
ini_set('display_errors', 'On');
$db = new Database();
//$db->delete("pages", 4);
//$db->update("pages", 3, "Updated Post", "The first post i updated", "This is my first updated post through php", "updated-post");
//$db->insert("pages", "PHP Post", "My first post from PHP", "This is the first post which was sent through php", "php-post");
$postArray = $db->selectAll("pages");

<!DOCTYPE html>
      <title>Oskar Mendel Freelance Web Developer & Web Designer</title>
      <meta name="description" content="Oskar Mendel is a freelance web developer & web designer. He loves to make websites and would be happy to work with you.">
      <meta name="keywords" content="Oskar Mendel, Freelance, Web Developer, Web Design, Programming, Design, Technology, Code, Responsive, Mobile">
      <meta name="robots" content="NOINDEX, NOFOLLOW">
      <meta name="google-site-verification" content="GPGulxFcdObZIM-2Ft3LxSSTi-esKA8mqmL6Z55fiLg" />
      <meta name="author" content="Oskar Mendel">

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">

    <!-- FONTS  -->
    <link href='http://fonts.googleapis.com/css?family=Oswald:400,700,300' rel='stylesheet' type='text/css'>