where('USER_NAME',$data['USER_NAME'])->find(); if ($user) { if ($user['PASSWORD'] == $data['PASSWORD']) { return 3; }else { return 1; } } } } ?>