function varified_mobile_no()
{
    global $main_db;
    $p_user = new PublicUser();
    $email = new Email();
    if (isset($_POST['action'])) {
        /*
         * Have a problem if mobile not appear
         * */
        $user = $p_user->get_user_by($_POST['current_mobile'], false);
        if ($user != NULL) {
            $data['user_id'] = $user->id;
            $code = rand(0, 100000);
            $data['code'] = $code;
            $data['mobile'] = $user->mobile;
            $data['new_mobile'] = $_POST['new_mobile'];
            $msg = 'Varification Code: ' . $code;
            /*
             * send varification code into the email id
             * NEED SMTP setup
             * */
            //$email->send_email($data['new_mobile'],'Varification Code',$msg,$email->sender_email);
            if (!isset($_SESSION['change_mobile'])) {
                unset($_SESSION['change_mobile']);
            }
            $_SESSION['change_mobile'] = $data;
            echo 'yes';
        } else {
            //Please don't change it
            echo 'no';
        }
    }
}