public function __construct() { parent::__construct(); $this->load->database(); $this->suppliercode = GetSupplierCode(); $this->url = config_item(_SITEMINDER_STAGE . '_url'); save_log_data(); }
public function fetchLogDetails($post) { $strSQL = "SELECT `Id`," . "`XMLService`," . "`RQLog21`," . "`RPLog21`," . "`SupRQLog`," . "`SupRPLog`," . "`CreateDate`," . "`ConfirmNo`" . " FROM xmllog21s" . " WHERE" . " Id = '" . $post['ID'] . "'" . " AND" . " SupplierCode = '" . GetSupplierCode() . "'"; $rs = $this->db->query($strSQL); if ($rs === FALSE) { return array(); } return @array_shift($rs->result_array()); }