Commit 0bdd0358 by Jansa Jose

J : get country code api changes

parent fb48d613
...@@ -853,7 +853,7 @@ class Organizer_model extends CI_Model { ...@@ -853,7 +853,7 @@ class Organizer_model extends CI_Model {
public function getCountryCode(){ public function getCountryCode(){
try{ try{
$sql = "SELECT country_id,country_name,country_code,phone_code FROM country WHERE status=1"; $sql = "SELECT DISTINCT phone_code,country_id,country_name,country_code FROM country WHERE status=1";
$ctryData = $this->db->query($sql); $ctryData = $this->db->query($sql);
if(empty($ctryData) || empty($ctryData = $ctryData->result_array())){ if(empty($ctryData) || empty($ctryData = $ctryData->result_array())){
$res = array('status'=>0,'message'=>'No Data Found','code'=>'ER06'); $res = array('status'=>0,'message'=>'No Data Found','code'=>'ER06');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment