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.";
    }
  }
 ?>

Argument not specified

Dear All,

Good Morning!

I am facing this issue i tried a lot but not able to find the issue with this function when i call this function i get error

Argument not specified for parameter 'LVL' of 'Public Function UL(LVL As String) As String'

The code is listed below, if someone can help me on this i will be greatful.

Public Function UL(ByVal LVL As String) As String
        Dim con As OracleConnection = New OracleConnection(My.Settings.ConnectionString)
        Dim com As OracleCommand = Nothing
        Dim userLevel As String = True
        Try
            con.Open()
            com = New OracleCommand("SELECT LVL FROM Users WHERE Username = '" & Username & "'", con)
            userLevel = com.ExecuteScalar
            con.Close()
        Catch Exp As OperationAbortedException
            If con.State = ConnectionState.Open Then
                con.Close()
                userLevel = "Failed to retrieve permission level"
            End If
        End Try
        Return userLevel
    End Function

Thanks in Advance.
Have a good day.