0){ $set_user = mysqli_fetch_assoc($check_user); if($set_user['new_status']==1){ $json = array("status"=>"billing"); echo json_encode($json); exit; }else{ $rand = rand(1111, 9999); sms_api_otp($set_user['name'], $rand, $mob_number); $base = base64_encode($rand); $json = array("status"=>"success", "base"=>$base); echo json_encode($json); exit; } }else{ $json = array("status"=>"failed"); echo json_encode($json); exit; } ?>