GET 变量中的值在页面加载时丢失,我想长时间存储 GET 变量值,以便它仅更改来自视图页面的请求
帮助我如何在 $_GET[] 中存储价值,除非它在请求时改变
function get_data($limit,$offset )
{
//$type = $this->input->post('data');
$this->db->select('S_Name,P_Name,P_Price');
//$this->db->from();
$this->db->join('item_info', 'P_Id = I_ProductId ');
$this->db->join('order_info', 'I_OrderId = O_Id');
$this->db->join('shops_info', 'O_ShopId = S_Id');
$this->db->where('S_Id',$_GET['shopId']);
$query = $this->db->get('product_info',$limit,$offset);
return $query->result();
}