<HTML>
<HEAD><TITLE>ข่าวสาร ThaiChrist.Org </TITLE></HEAD>
<BODY>
<center><img src="../jesusimg/newsthai.jpg" width="223" height="83"></center>
<br>
<?
include "function.php";
include "connect.php";
for ($i=1;$i<=count($newtype);$i++) {
echo "<B>$newtype[$i]</B><BR>";
echo "<UL>";
$sql="select * from tb_new where type_new='$i' ";
$result=mysql_db_query($dbname,$sql);
$total=mysql_num_rows($result);
$sql="select * from tb_new where type_new='$i' order by date_new desc limit 0,5";
$result=mysql_db_query($dbname,$sql);
$query1=mysql_query("select CountRead from tb_new where id_new=$id_new");
$CountRead=mysql_result($query1,0);
$getcount=$getcount+1;
$query2=mysql_query("update tb_new set CountRead=$getcount where id_new=$id_new");