''){ $cat="select * from cat_topic where id='".$_GET['id']."'"; $recat=mysql_query($cat); $rowcat=mysql_fetch_array($recat); } ?> เว็บบอร์ด<?php echo $rowcat['name'];?> | <?php echo $titleweb;?>
    ''){ $q="select id, name, dateadd, memid,view from t_topic where cateid='".$_GET['id']."'"; }else{ $q="select id, name, dateadd, memid, view from t_topic"; } $q.=" order by id DESC"; $qr=mysql_query($q); $total=mysql_num_rows($qr); $e_page=25; $urlfile="webboard.php?id=$_GET[id]"; if(!isset($_GET['page'])){ $_GET['page']=0; }else{ $chk_page=$_GET['page']; $_GET['page']=$_GET['page']*$e_page; } $q.=" LIMIT ".$_GET['page'].",$e_page"; $qr=mysql_query($q); if(mysql_num_rows($qr)>=1){ $plus_p=($chk_page*$e_page)+mysql_num_rows($qr); }else{ $plus_p=($chk_page*$e_page); } $total_p=ceil($total/$e_page); $count=$_GET['page']+$count; $before_p=($chk_page*$e_page)+1; while($rows=mysql_fetch_array($qr)){ $sp="select * from t_member where id='".$rows['memid']."'"; $resp=mysql_query($sp); $row=mysql_fetch_array($resp); ?>
  • "> []
0){ ?>