Mode App Adds Open Banking, Top Up Feature

Featured Imgs 23

Mode, a digital banking app, is launching its first open banking feature. The feature allows users to connect external banking accounts with the Mode app, specifically enabling quick top ups. The feature is made possible through its partnership with Modulr.

my function is not working

558fe5180e0e8fc922d31c23ef84d240
                        function username_exists($username){
                            global $db;
                            $sql = "SELECT 'username' FROM users WHERE 'username' = '$username'";
                            $result = mysqli_query($db, $sql);
                            confirmquery( $result );

                             if (mysqli_num_rows($result) > 0) {
                               return true;
                             }else {
                               return false;
                             }
                        }
                        if(username_exists($username)){
                                $error['username'] = 'Username already exists';
                              }