All pastes #226215 Raw Edit

asd

public php v1 · immutable
#226215 ·published 2006-10-28 11:05 UTC
rendered paste body
<?php// Die Logindaten für die Datenbank werden aus der Datei "config.inc.php"// eingebunden.require('config.inc.php');// Die Datei "Database.class.php" welche die Ein- und Ausgabe des MySQL Codes// erleichtert und absichert wird eingebunden.require_once('Database.class.php');# Connect to database.$db = new Database($mysqlhost, $mysqluser, $mysqlpassword, $mysqldb);$termin = $db->getRow("SELECT `id`,`titel`,`inhalt`, `datum`FROM `gigss`WHERE `id`= '?'", $_GET['id'] );printf ('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /><title>The Holics</title><link href="./style/style.css" type="text/css" rel="stylesheet" /><style type="text/css">body {    margin: 4px;}.hoehe {    height: 303px;}h2 {    margin-bottom: 1em;}p {    margin-bottom: 1em;    font-weight: bold;}.eckeunten div {    text-align: center;}</style></head><body><h2 class="verstecken">Termininformation</h2><div class="gruen">    <div class="eckeoben" ><div></div></div>        <div class="hoehe box_padding">            <h2>%s</h2>            <p>Datum: %s</p>            <p>%s</p>        </div>    <div class="eckeunten" ><div><a href="" onclick="JavaScript:self.close()">Fenster schließen</a></div></div></div></body></html>', $termin['titel'], date("d.m.Y",$termin['datum']), $termin['inhalt'] );?>