ผลงานล่าสุด
=$objResult["deteil_news"];?>
session_start(); include("connect.php"); $strSQL = "SELECT * from news where id_news = '".$_GET["id"]."'"; $objQuery = mysql_query($strSQL); $objResult = mysql_fetch_array($objQuery); $view=$objResult[counter]+1; //pageview + 1 $q="UPDATE news SET counter='$view' WHERE news.id_news ='".$_GET['id']."' "; //update to pageview mysql_query($q); ?>