show_js.php
来自「phpcms2007很好的cms内容管理系统,操作方便」· PHP 代码 · 共 11 行
PHP
11 行
<?php
require_once './include/common.inc.php';
$productid = isset($itemid) ? intval($itemid) : 0;
if(!$productid) exit;
$r = $db->get_one("select productid,catid,hits,comments from ".TABLE_PRODUCT." where productid=$productid ", "CACHE");
if($r['productid'])
{
$db->query("update ".TABLE_PRODUCT." set hits=hits+1 where productid=$productid");
echo "try {setidval('commentnumber','".$r['comments']."');}catch(e){};\n";
}
?>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?