Ignore:
Timestamp:
Nov 14, 2014 6:18:06 AM (11 years ago)
Author:
dungnv
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • pro-violet-viettel/sourcecode/application/modules/frontend/models/servicepackage_model.php

    r499 r501  
    1717    function getAllPackages()
    1818    {
     19        $this->db->query('UNLOCK TABLES');
    1920        $sql="SELECT * FROM ".$this->table_name."";
    2021        return $this->db->query($sql)->result_array();
     
    2324    function getPackage($p_id)
    2425    {
     26        $this->db->query('UNLOCK TABLES');
    2527        $sql="SELECT * FROM ".$this->table_name." WHERE ".$this->id_name."=".$p_id;
    2628        return $this->db->query($sql)->row_array();
     
    2931    function getPackagePriceByCode ($p_code)
    3032    {
     33        $this->db->query('UNLOCK TABLES');
    3134        $sql='SELECT p_price FROM '. $this->table_name .' WHERE p_code = ?';
    3235        $query =  $this->db->query($sql , array($p_code));
     
    3740    function getPackageByCode ($p_code)
    3841    {
     42        $this->db->query('UNLOCK TABLES');
    3943        $sql='SELECT * FROM '. $this->table_name .' WHERE p_code = ?';
    4044        $query =  $this->db->query($sql , array($p_code));
Note: See TracChangeset for help on using the changeset viewer.