Commit e632f486 by Jansa Jose

J: get country code issue fixing

parent 0bdd0358
......@@ -853,7 +853,7 @@ class Organizer_model extends CI_Model {
public function getCountryCode(){
try{
$sql = "SELECT DISTINCT phone_code,country_id,country_name,country_code FROM country WHERE status=1";
$sql = "SELECT DISTINCT phone_code,country_id,country_name,country_code FROM country WHERE status=1 GROUP BY phone_code";
$ctryData = $this->db->query($sql);
if(empty($ctryData) || empty($ctryData = $ctryData->result_array())){
$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