Hey, Leute.
Ich arbeite schon seit 14:00 Uhr daran, mein news System fertigzustellen, jedoch ohne Erfolg.
Also wenn ich folgende Queries ausführe, zeigt mein News System die Longstory, den Titel etc. nicht an:
EDIT:
Ganzer code:
<?php require('extra/head/head.php'); ?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<link rel="shortcut icon" href="http://retropresse.de/habbo/Images/favicon.ico" type="image/vnd.microsoft.icon"/>
<title>{hotelName} - {newstitle}</title>
<meta http-equiv="Default-Style" content="defualt">
<script src="http://ajax.googleapis.com/ajax/libs/jque…1/jquery.min.js"></script>
<?php
require('extra/head/csslinks.php');
require('extra/head/javascriptlinks.php');
?>
<? /* BEGINNING -------------------------------------------- */
$id = $_GET['id'];
?>
</head>
<style type="text/css">
.boxnews {
padding: 10px;
border-radius: 2px;
box-shadow: rgba(0,0,0,.3) 0 3px 0;
text-align: left;
margin-bottom: 10px;
background-color: #0B6395;
border: 2px solid #2685BC;
width: 500px;
float: left;
margin-left: 50px;
}
#wrapp-holding {
display: inline-block;
padding: 1px;
width: 90%;
margin-top: 20px;
}
#allnews {
padding: 10px;
border-radius: 2px;
box-shadow: rgba(0,0,0,.3) 0 3px 0;
text-align: left;
margin-bottom: 10px;
background-color: #0B6395;
border: 2px solid #2685BC;
width: 250px;
float: left;
}
a {
color: #fff;
text-decoration: none;
}
#link {
cursor: pointer;
}
</style>
<body onload="set_style_from_cookie()">
<?php include_once('extra/header_menu.php'); ?>
<section id="wrapper">
<div id="wrapp-holding">
<div id="allnews">
<h1 style="font-size: 17px; text-align: center;">Alle News<br></h1>
<?php
$query = mysql_query('SELECT * FROM cms_news ORDER BY id DESC');
while($news = mysql_fetch_array($query)){
?>
<a href="http://localhost/articles?id=<?php echo $news['id']; ?>"><?php echo $news['title']; ?></a><br>
<?php } ?>
</div>
<?php
$query = mysql_query("SELECT * from cms_news WHERE id LIKE ".$id."");
$news = mysql_fetch_array($query);
$title = $news['title'];
$shortstory = $news['shortstory'];
$longstory = $news['longstory'];
$longstory = $image['image'];
?>
<div class="boxnews">
<h3 class="title txt"><?php echo $news['title']; ?></h3>
<p><?php echo $news['shortstory']; ?></p>
<img class="shadow" src="/app/tpl/skins/Project Habbo/images/news/<?php echo $news['image'] ?>" alt="{newstitle-<?php echo $id; ?>" align="right">
<br>
<?php echo $news['longstory']; ?>
</div><br>
</div>
</section>
</body>
</html>
Gruß,
Divider