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();}}}报错APHPErrorwasencountered
Severity:Notice
Message:Undefinedvariable:hsh
Filename:models/stock_model.php
LineNumber:22
Fatalerror:Calltoamemberfunctionwhere()onanon-objectinD:\htdocs\application\models\stock_model.phponline22刚学,很多问题不懂!这是用的CI
SMILET
有只小跳蛙
相关分类