Syntax Error in Code

Hi All,

I havefollowing code and getting error "Parse error: syntax error, unexpected 'elseif' (T_ELSEIF) in C:\xampp\htdocs\SMR\index.php on line 13". Wehen i remove elseif and keep only if it just checks the first condition and ignor the second. When i put back elseif i get error. Please to fix this issue.

<?php
session_start();
error_reporting(0);
include('includes/dbconnection.php');

if(isset($_POST['login']))
  {
    $adminuser=$_POST['username'];
    $password=md5($_POST['password']);
    $userlvl=$_POST['userlvl'];
    $query=mysqli_query($con,"select ID from tbladmin where  UserName='$adminuser' && Password='$password' && userlvl='$userlvl' ");
    $ret=mysqli_fetch_array($query);
    elseif($ret>0 || userlvl==1){
     $_SESSION['cvmsaid']=$ret['ID'];
     header('location:dashboard.php');
    }
elseif($ret>0 || userlvl==2){
    $_SESSION['cvmsaid']=$ret['ID'];
     header('location:dashboard-supp.php');
    }

    else{
    $msg="Invalid Details.";
    }
  }
 ?>