load->database(); $this->table = 'commodityread'; $this->load_table('commodityread'); } public function get_productid($productid,$skuid) { return $this->find("productid = '$productid' and skuid = '$skuid'"); } public function get_tbproduct($productid,$skuid) { return $this->find("productid = '$productid' ".$skuid); } public function get_code($productid,$code) { return $this->find("productid = '$productid' and code = '$code'"); } public function get_sku($code) { return $this->find("code = '$code'"); } public function get_skuid($skuid) { return $this->find("skuid = '$skuid'"); } } //end class