0
Hello, guys I need to check in the bank if a logged in user already has registered Cpf and return if it is false or not.
I use codeigniter in the app. I’ll send you the codes. CONTROLLER:
public function check_cpf_doctor() {
$check_result = $this->Doctor_model->checkCPFDoctor($_POST['doctor_id']);
print json_encode($check_result);
}
// DOCTOR_MODEL
public function checkCPFDoctor($id)
{
$key = $this->config->item('encryption_key');
$query =
if($query['crm'])
{
return true;
}
else
{
return false;
}
}
this model query is wrong and incomplete.
You have a button to check or you are arriving in Ajax?
– Sr. André Baill