This is my following code:
$update = array(
'fullname' => $this->input->post('fullname'),
'phone' => $this->input->post('phone'),
'sex' => $this->input->post('sex'),
'city' => $this->input->post('city'),
if($_POST['bday']){ -->THIS FROM SUBMIT FORM
'bday' => $this->input->post('birthday')
}
);
Is there is a way to do that if conditional?