modelclassStock_modelextendsCI_Model{private$hsh;function__construct(){parent::__construct();$_ci=&get_instance();//$this->hsh=$_ci->load->database('hsh',TRUE);$hsh=$_ci->load->database('hsh',TRUE);}functionget_stock($goods_huo){if(isset($goods_huo)){$hsh->where('item_huo',$goods_huo);$query=$hsh->get('item_info');return$query->result_array();$query->free_result();}}}报错APHPErrorwasencounteredSeverity:NoticeMessage:Undefinedvariable:hshFilename:models/stock_model.phpLineNumber:22Fatalerror:Calltoamemberfunctionwhere()onanon-objectinD:\htdocs\application\models\stock_model.phponline22刚学,很多问题不懂!这是用的CI
添加回答
举报
0/150
提交
取消