<?
$id = trim(intval($_GET['id']));                            
$sql_sorgu1="select * from haber 
 where  haber_id=".$id;
$result1=mysql_query($sql_sorgu1);
@$row_manset = mysql_fetch_array($result1);
@$resim = $row_manset["resim"];
@$spot = $row_manset["spot"];
$sql_sorgu2="select id,dosyaadi,resim from resim 
 where  id=".$resim;
$result2=mysql_query($sql_sorgu2);
@$row_resim = mysql_fetch_object($result2);
$kesik ="";
                                  $kesik = $spot;
                                  $kesik = str_replace("\'", "'", $kesik);
                                  $kesik = str_replace("\\\"", "\"", $kesik);
                            ?>
                                    <table width=91% height="75">
                                      <tbody>
                                        <TR>
                                              <? $a1=strlen($resim);
?>
<?
if ($a1>=5)
{  ?>
  <TD style="BORDER-RIGHT: #000000 1px solid; BORDER-TOP: #000000 1px solid; BORDER-LEFT: #000000 1px solid; BORDER-BOTTOM: #000000 1px solid"><img SRC='pictures/<?=$resim; ?>.jpg' width="296" height="157" align="top"></td>
<? }
else
{  ?>
<TD style="BORDER-RIGHT: #000000 1px solid; BORDER-TOP: #000000 1px solid; BORDER-LEFT: #000000 1px solid; BORDER-BOTTOM: #000000 1px solid"><img SRC='resimgetir.php?id=<?=$resim; ?>' width="296" height="157" align="top"></td>
<?  }  ?>