<?
$sql1="Select * From table_product where id_prd='$id_prd'";
$dbquery1=odbc_exec($connect,$sql1);
$num=odbc_num_rows($dbquery1);
$hit1=$num[hit]+1;
$sql2="update table_product set hit='$hit1' where id_prd='$id_prd'";
$dbquery2=odbc_exec($connect,$sql2);
odbc_close($connect)
?>
$sql="Select * From table_product Where id_prd='$id_prd' ";
$result=mysql_query($sql);
$row=mysql_fetch_array($result);
$view=$row['view'];
$view_up=$view+1;
$sql2="Update table_product Set view=$view_up Where id_prd='$id_prd' ";
$result2=mysql_query($sql2);
$sql="Select * From table_product Where id_prd='$id_prd' ";
$result=odbc_exec($connect,$sql);
$row=odbc_fetch_array($result);
$view=$row['hit'];
$view_up=$view+1;
$sql2="Update table_product Set hit=$view_up Where id_prd='$id_prd' ";
$result2=odbc_exec($connect,$sql2);