تفضل
كود:
<?php
include('config.php');
include('header.php');
$tbl_name="dov_web"; // اسم الجدول
///////////////////////////////////////////
$sql="SELECT * FROM $tbl_name where (id='$id') ";
$result=mysql_query($sql);
mysql_query( "update $tbl_name set view=view+1 where (id='$id') " );
while($rows=mysql_fetch_array($result)){
?>
<table border="0" cellspacing="0" id="table1" width="80%" height="118"><tr>
<td width="70%">
<p align="center"><b><font size="5"><? echo $rows['name']; ?></font></b><br><? echo $rows['txt']; ?><br>عدد المشاهدات : <? echo $rows['view']; ?><p align="center"> <p align="center">
<span lang="ar-sa"><a href="<? echo $rows['web_url']; ?>">لزيارة الموقع اضغط هنا</a></span></td>
<td width="29%">
<p align="center"><a href="<? echo $rows['web_url']; ?>">
<img border="0" src="<? echo $rows['img_smoll']; ?>" alt="<? echo $rows['name']; ?>"></a></td></tr></table>
<?php
}
include('footer.php');
mysql_close();
?>
__________________
سبحان الله وبحمده سبحان الله العظيم
العضوية يستخدمها اكثر من شخص
Nabeel A. Galal
Hawk Eye
nabeel.galal AT hotmail.com