am using google cloud sql instance for my application db, when i try to insert records into it doesn't generate any error but the records are not inserted but when i use my local database everything works fine what could be the reason for this..
My project is a codeigniter application. meanwhile if i try to read from cloud instance(select ) it works. there is no problem with code because it works fine with my localhost.
$data['username'] = $this->input->post('username');
$data['email'] = $this->input->post('email');
$data['metamask_address'] = $this->input->post('metamask_address');
$data['address1'] = $this->input->post('address1');
$data['address2'] = $this->input->post('address2');
$data['phone'] = $this->input->post('phone');
$data['surname'] = $this->input->post('surname');
$data['zip'] = $this->input->post('zip');
$data['city'] = $this->input->post('city');
$data['state'] = $this->input->post('state');
$data['country'] = $this->input->post('country');
$data['langlat'] = '';
$data['wishlist'] = '[]';
$data['creation_date'] = time();
if ($this->input->post('password1') == $this->input->post('password2'))
{
$password = $this->input->post('password1');
$data['password'] = sha1($password);
$this->db->insert('user', $data);
$msg = 'done';
if($this->email_model->account_opening('user', $data['email'], $password) == false)
{
$msg = 'done_but_not_sent';
}
else
{
$msg = 'done_and_sent';
}
}
echo $msg;