mercredi 23 mai 2018

bracket is lost in PHP code

Parse error: syntax error, unexpected '{'

Plz, I wonder Can you help me, I can't find it.

if( isPost() ) {
    extract($_POST);
    if( validation_required([$name , $family ,$username , $email , $password]) ) {
        $conn = connectToDB();
        if (!userGet($username,$conn){
             saveUsers($_POST) ? redirect("index.php") : $status = 'you are failed';
        } else {
            $status = "This username is exist";
        }
    } else {
        $status = 'your information is not valid';
    }
}

Aucun commentaire:

Enregistrer un commentaire