Front-end:
php background receiving and querying:
public function MallList(){ //写方法 $goods=M('shop_goods_info'); //实例化数据库对应的表 $codes=I('param.bianhao'); //获取前台文本框数据 if(isset($codes) && $codes != ''){ $where['code']=$codes; $this->assign('codes',$codes); //显示 } } $info=$classify->where(array('code'=>$code))->find(); //查询语法
2. Or:
has $_GET or $_POST
If it is GET, change it to GET