- Timestamp:
- Nov 14, 2014 6:18:06 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pro-violet-viettel/sourcecode/application/modules/frontend/models/servicepackage_model.php
r499 r501 17 17 function getAllPackages() 18 18 { 19 $this->db->query('UNLOCK TABLES'); 19 20 $sql="SELECT * FROM ".$this->table_name.""; 20 21 return $this->db->query($sql)->result_array(); … … 23 24 function getPackage($p_id) 24 25 { 26 $this->db->query('UNLOCK TABLES'); 25 27 $sql="SELECT * FROM ".$this->table_name." WHERE ".$this->id_name."=".$p_id; 26 28 return $this->db->query($sql)->row_array(); … … 29 31 function getPackagePriceByCode ($p_code) 30 32 { 33 $this->db->query('UNLOCK TABLES'); 31 34 $sql='SELECT p_price FROM '. $this->table_name .' WHERE p_code = ?'; 32 35 $query = $this->db->query($sql , array($p_code)); … … 37 40 function getPackageByCode ($p_code) 38 41 { 42 $this->db->query('UNLOCK TABLES'); 39 43 $sql='SELECT * FROM '. $this->table_name .' WHERE p_code = ?'; 40 44 $query = $this->db->query($sql , array($p_code));
Note: See TracChangeset
for help on using the changeset viewer.