你又要生成一个图片了,真晕.
生成图片,哪你保存在数据库里又有啥用,当初保存个图片URL地址不更好.呵呵,不明白你的思路.<?php include("conn/conn.php");?> 
<table width="355" border="1" align="center" cellpadding="0" cellspacing="0"> 
<?php $query="select * from tb_tpsc where id order by scsj desc limit 3"; 
$result=mysql_query($query); 
if($result==true){ 
while($myrow=mysql_fetch_array($result))

   file_put_contents($myrow['id'].".jpg", $myrow['file']);
?> <tr> 
<td width="100" align="center"> <?php echo $myrow[scsj];?> </td> 
<td width="255" align="center"> <img src=" <?php echo $myrow['id'].".jpg";?>" width="200" height="150"> </td> 
</tr> 
<?php 
}
}?> 
</table>