$_REQUEST[id]为我们访问的商品id
//开启session
session_start ();
//获取是否有上次访问的session
if($click_out){
//本次访问商品是否是上次访问
//echo $zhi;die;
if($zhi==false){
//让程序依次执行下去
}else{
$click_out[] = md5($_REQUEST[id]);
$_SESSION['array'] = $dd;
$a = $db->query('UPDATE ' . $ecs->table('goods') . " SET click_count = click_count + 1 WHERE goods_id = '$_REQUEST[id]'");
//echo "a";die;
}
//var_dump($array_key);die;
}else{
//第一次访问
// $array[][''] = $_REQUEST[id];
//var_dump($array);die;
$_SESSION['array'] = $array;
$db->query('UPDATE ' . $ecs->table('goods') . " SET click_count = click_count + 1 WHERE goods_id = '$_REQUEST[id]'");
//echo "a";die;
}