Virker overhovedet ikke.?
Jeg sidder og arbejder med css og lidt php og database. mit problem er at jeg ikke kan for min info op ved siden af.http://klanroga.dk/Unavngivet.png
Min css ser sådan her ud
@charset "utf-8";
body {
width:930px;
margin:0 auto;
background:url(img/bg/bg.png) #FFF repeat-x;
}
#top {
font-size:36px;
margin-top:10px;
margin-bottom:10px;
}
.author {
font-size:ilatic;
font-size:18px;
margin-bottom:4px;
}
.title {
font-weight: bold;
font-size:18px;
}
.content:first leller {
color:#111;
font-size:18px;
}
fontent:first line {
font-size:18px;
font-style:oblique;
}
.post {
border-bottom:dashed 1px #03F;
margin-bottom:7px;
}
.blog {
width:600px;
padding:5px;
float:left;
clear:both;
}
#info {
width:300px;
padding:5px;
float:left;
clear:both;
}
#menu {
width:940px;
background:#09F;
padding:5px;
font-family:"Courier New", Courier, monospace;
margin-top:60px;
border-radius:6px;
-moz-border-radius:6px;
-webkit-border-radius:6px;
}
#menu li {
display:inline;
padding-left:10px;
}
#menu ul {
margin:0px;
padding:0px;'
}
#menu a {
color:#000;
text-decoration:none;
}
Min index.php sådan her ud
<div class="blog">
<?php
$sql = "SELECT * FROM posts ORDER BY date ASC";
$result = mysql_query($sql);
while($row = mysql_fetch_array($result)){
?>
<div class="post">
<span class="author">
<?php
$sql2 = "SELECT postname FROM users WHERE ID '".$row['username']."'";
$result2 = mysql_query($sql2);
while($author = mysql_fetch_array($result2)){
echo $author[0];
}
?>
</span>
<div class="title">
<?php
echo $row['title'];
?>
- <?php $ts = time();echo date("d/m/Y", $ts);?>
</div>
<div class="content">
<?php
echo htmlentities($row['content']);
?>
</div>
</div>
<?php } ?>
</div>
<div id="info">
hej med dig
</div>