Example #1
0
    <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
    <script src="server.js" type="text/javascript"></script>
</head>

<body class="bg2">
    <?php 
require "server/DatabasePDO.php";
require "server/Story.php";
require "server/Superhero.php";
require "server/SuperheroOf.php";
require "server/Publisher.php";
require "server/CreatedBy.php";
require "server/Author.php";
$story = Story::findById($_POST["storyID"]);
$publisher = Publisher::findById($story->getId());
$superheroof = SuperheroOf::findByStoryId($story->getId());
$createdby = CreatedBy::findByStoryId($story->getId());
?>
    <img id="upper_left" class="reflect" src="images/spiderman.png" width="450px">

    <div class="container result">
        <div class="row text-center header">
            <div id="logo"></div>
        </div>

        <!--Character Start-->
        <div class="panel panel-danger">
            <div class="panel-heading  text-center">
                STORY
            </div>
            <div class="panel-body">
 private static function initializeConnection()
 {
     if (is_null(self::$dbConn)) {
         self::$dbConn = DatabasePDO::getInstance();
     }
 }