pls help me with code i dont get where is the error
$userrole = $row['type'];
if ($userrole = "admin") {
        $_SESSION['name'] = $row['name'];
        header("Location: ../index.php"); 
} elseif ($userrole = "encoder") {
        $_SESSION['name'] = $row['name'];
        header("Location: ../mencode.php"); 
} elseif ($userrole = "verifier") {
        $_SESSION['name'] = $row['name'];
        header("Location: ../mverify.php"); 
} else ($userrole = "approver") {
        $_SESSION['name'] = $row['name'];
        header("Location: ../mapproved.php"); } 
thnx in advance
 
     
     
    