Fatal error: Uncaught Error: Call to undefined function sellerLogIn() : <p>I'm trying to pass the variables to the function where the actual assigning of values to Session variables are, but it gives me an error where it says the function is undefined</p>

<pre><code>if(isset($_POST['submit'])){
    $username=$_POST['un'];
    $pass=$_POST['pass'];
    $uType=$_POST['logn'];

    $conn = new mysqli("localhost","bns_admin","hellobns","buynsave") or die('&lt;script src="Connectfail.js"&gt;&lt;/script&gt;');

    if($uType="seller"){
        $query="SELECT * FROM sellers WHERE sellerUserName='".$username."'";
        $passQuery="SELECT * FROM sellers WHERE sellerPassWD='".$pass."'";
        sellerLogIn($conn,$passQuery,$query,$username,$uType);
    }

function sellerLogIn($conn,$passQuery,$query,$username,$uType){
        $result=$conn-&gt;query($query);
        $passResult=$conn-&gt;query($passQuery);

        if($result &amp;&amp; $passResult){
            $getIDQ="SELECT sellerID FROM sellers WHERE sellerUserName='".$username."'";
            $getID=$conn-&gt;query($getIDQ);

            $_SESSION['usertype']=$uType;
            $_SESSION['username']=$username;
            $_SESSION['sellerID']=$getID;
        }

        else
            echo '&lt;script src="logDeb.js"&gt;&lt;/script&gt;';



    }
</code></pre>
