Quantcast
Channel: Forum Pasja Informatyki - Najnowsze pytania bez odpowiedzi
Viewing all articles
Browse latest Browse all 21942

Czemu to nie dziala?

$
0
0

Witam mam problem, otoz gdy chce zrobic Update:

    if($writeUsername) {
        $a .= "F";
//        $sql = "UPDATE user SET username = '".$newUsername."' WHERE username = '".$_SESSION["username"]."'";
//
//        mysqli_query($con, $sql);

//        $sglUser = "username = '".$newUsername."'";
        $logOut= true;
    }

    if($writeMail) {
        $a .= "G";
//        $sql = "UPDATE user SET email = '".$newMail."' WHERE username = '".$_SESSION["username"]."'";
//
//        mysqli_query($con, $sql);

//        $sglMail = "email = '".$newMail."'";
        $logOut= true;
    }

    if($writePassword) {
        $a .= "H";
//        $sql = "UPDATE user SET password = '".$newPassword."' WHERE username = '".$_SESSION["username"]."'";
//
//        mysqli_query($con, $sql);

//        $sglPass = "password = '".$newPassword."'";
        $logOut= true;
    }

To, to co podalem w komentarzu nie dziala, mianowicie:

1. if sie spelnia i zmienia nazwe uzytkownika,

2. i 3. sie nei spelniaja, tylko gdy sa podane w tej formie lub w jednym ifie. Czy moglby mi ktos powiedziec/nakierowac, gdzie jest blad?

Pozdrawiam :)


Viewing all articles
Browse latest Browse all 21942

Trending Articles