include("../common/functions.php"); DBConnect(); $aktJahr = date("Y",time()); ?>
Aktuelles:
$query = @mysql_query("SELECT id, timestamp, headline, body FROM praevikus_news ORDER BY timestamp DESC LIMIT 2");
while ($subquery = @mysql_fetch_array($query)) {
$id = $subquery['id'];
$datum = date("d.m.Y",$subquery['timestamp']);
$zeit = date("H:i",$subquery['timestamp']);
$headline = $subquery['headline'];
$body = $subquery['body'];
$cutbody = substr($body,0,120);
$cutpos = strrpos($cutbody, " ");
$body = substr($cutbody,0,$cutpos).' ...';
?>
echo $headline ?>
echo $datum ?> | echo $zeit ?> Uhr
|