require_once './global.php'; $DB->query("update ".$tablepre."teacher set views=views+1 where id='".$_GET['id']."'"); $hello=$DB->fetch_one_array("select * from ".$tablepre."teacher where id='".$_GET['id']."'"); $hcount=$hello['views']; ?> document.write("=$hcount?>");