Guten Abend Rt, ich hab an eine News bisschen rumgebastelt(Bearbeitet).
Alles läuft perfekt.
Bild:
Spoiler anzeigen
Aber wo ich neue News eingefügt hab um zu testen das alles perfekt läuft, passiert das:
Bild:
Spoiler anzeigen
Htmlcode:
Spoiler anzeigen
<html lang="de">
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<title><?php echo $sitename; ?> :: News</title>
<div style="clear:both;"></div>
</div>
</div>
</div>
</br></br>
<style>
.boxdd {
z-index: -1;
float: left;
border-radius: 2px;
background-color: #FFFFFF;
box-shadow: 0 0 0 1px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.1);
}
.boxdescc {
width: 161px;
height: 18px;
line-height: 22px;
border-bottom: 1px dashed rgba(0,0,0,0.10);
padding: 20px;
font-size: 14px;
font-weight: 500;
margin-bottom: 10px;
color: #444444;
float: left;
font-family: 'Segoe UI',sans-serif;
}
</style>
<div style="margin-left: 50px;" class="grid_2">
<?php
$sql = mysql_query("SELECT * FROM cms_news ORDER BY id DESC");
if(mysql_num_rows($sql) > 0){
?>
<div class="boxdd" style="margin-top: -50px;width: 100%;">
<div class="boxdescc" style="color: #fff;background: #474747; font-size: 18px;">Menü</div>
<ul style="list-style-type: none;padding:0px;font-size: 13px;">
<?php while($row = mysql_fetch_assoc($sql)){ ?>
<?php if($news_id !== $row['id']){ echo"<a href=\"".$path."/articles/".$row['id']."\">"; } ?>
<li class="lastnews" style="color: #41c717; text-align: center;"><?php echo $row['title']; ?></a> »
<?php if($news_id !== $row['id']){ echo"</a>"; } ?></li>
<?php } ?>
</b>
</ul>
<?php } ?>
</div>
</div>
<div class="container_12 animated fadeInLeft">
<div class="grid_12">
<div class="boxd" style="margin-top: -120px;margin-left: 60px;width: 100%;">
<div class="boxhead">
<div style="float: left;"><?php echo HoloText($news['title']); ?></div>
<div style="float: right;"><?php echo date('d.m.Y', $news['published']); ?></div>
</div>
<div class="boxdesc"><?php echo nl2br(HoloText($news['longstory'])); ?></div>
<span style="line-height: 22px; margin-bottom: 15px;">
<p><?php echo nl2br(HoloText($news['shortstory'], true)); ?></p>
</span>
<div class="boxautor">
<div style="float: left; opacity: 0.8;">
Artikel verfasst von <font color="#3498db"><?php echo $news['author']; ?></font>
</div>
</div>
</div>
</div>
Es wäre cool, wenn ihr mir helfen würdet.