www.gusucode.com > 网猫影视系统NetMao Movie 4.6.6 开源版源码程序 > upload/hits.php
<?php /* *###################################### * Netmao Movie 4.x - NetMao Movie System * Copyright (c) 2007-2008 NetMao.cn * For further information go to http://www.netmao.cn/ * This copyright notice must stay intact for use. *###################################### */ require_once './inc/common.php'; $mid = intval($mid); if(!$mid) exit; $result = $db->query("select hits from {$tablepre}movies where mid='$mid'"); if($db->num_rows($result)==1){ $db->query("update {$tablepre}movies set hits=hits+1 where mid='$mid'"); $r=$db->fetch_array($result); $hits=$r[hits]; echo "try {setidval('hits','".$hits."');}catch(e){}\n"; } ?>