Adding country code constant to phone number input on form
Would this work for your case?
'Alternate_PhoneNumber' => '+234' . $this->input->post('Alternate_PhoneNumber'),
Use concatenation
before saving data into database.
1) Suppose the variable $PhoneNumber = '0834144706'
is your actual number.
2) And one more prefix variable called $country_code = '+234'
;
3) Do concatenation
like this (Full Code)
$PhoneNumber = '0834144706';$country_code = '+234';$final_number = $country_code.$PhoneNumber; // Has value +2340834144706
and save the $final_number
variable data into database.