Beispiel #1
0
/**
 * Created by IntelliJ IDEA.
 * User: rorypb
 * Date: 01/12/2015
 * Time: 12:17 PM
 */
require_once 'connection.php';
require_once 'garageTableGateway.php';
if (!isset($_GET['id'])) {
    die("Halt");
}
$id = $_GET['id'];
$connection = Connection::getInstance();
$gateway = new garageTableGateway($connection);
$statement = $gateway->getGarageByID($id);
$row = $statement->fetch(PDO::FETCH_ASSOC);
if (!$row) {
    die("Unable to get Garage By ID");
}
?>


<!DOCTYPE html>
<html>
<head>
    <link rel="stylesheet" href="http://yui.yahooapis.com/pure/0.6.0/pure-min.css">
    <meta charset="UTF-8">
    <title></title>
</head>
<body>