include("baglan.php"); 
$o = mysql_query("SELECT * FROM haber ORDER BY id DESC LIMIT 0,2"); 
$ogo = mysql_query("SELECT * FROM yorumlar ORDER BY rand()"); 
while($yazo = mysql_fetch_array($ogo)){ 
    $oisim = $yazo['ad']; 
    $osoyad = $yazo['soyad']; 
    $omesaj = $yazo['mesaj']; 

$ocomments = "<table border=\"0\" style=\"background:#7fd7ff; width:550px; height:150px; padding:5px; color:white; font-weight: bold;\"> 
  <tr> 
    <td valign=\"top\">$omesaj</td> 
  </tr> 
</table> 
";} 



echo "<span style=\"float:right; margin-right:50px; margin-top:30px; border:1px solid #e1e1e1;\"> 
<h2>$oisim $osoyad</h2> 
<table><tr><td> 
$ocomments 
</td></tr></table> 
</span>"; 

echo "<div class=\"shell,left\" style=\"margin-left:60px;\"> 
            <div class=\"heading-cnt\">";

while($oyaz = mysql_fetch_array($o)){ 
$haberimg     =     $oyaz['haber_resim']; 
if($haberimg !=""){ 
    $haberimg = $oyaz['haber_resim']; 
}else{ 
    $haberimg = "noimage.jpg"; 
} 
$baslik = $oyaz['haber_baslik']; 
$icerik = $oyaz['haber_icerik']; 
echo "<table width=\"100%\" border=\"0\" style=\"border:1px dotted #CCC;\"> 
  <tr> 
    <td height=\"21\" colspan=\"2\"><h2>$oyaz[id] - $baslik</h2></td> 
  </tr> 
  <tr> 
    <td width=\"17%\"><img src=\"images/$haberimg\" alt=\"$baslik\" style=\"width:170px; height:120px; border:3px solid #e1e1e1;\" class=\"right\"  /></td> 
    <td width=\"83%\" height=\"79\" valign=\"top\" style=\"font-style: italic;\"><div style=\"margin-left:10px;\">$icerik</div></td> 
  </tr> 
</table> 
<div style=\"border-bottom:2px solid #CCC; margin-bottom:5px;\">&nbsp;</div> ";
}
echo "</div> 
            <div class=\"cl\">&nbsp;</div> 
        </div> 
    <!-- End Heading -->";