PHP -Warning: mysqli_fetch_array()
<p>php code:</p>

<pre><code>&lt;?php

$name = $_GET['name'];
$type = $_GET['type'];
$desc = $_GET['desc'];


        $con=mysqli_connect("localhost","root","","projdb");

        // Check connection
        if (mysqli_connect_errno($con))
        {
        echo "Failed to connect to MySQL: " . mysqli_connect_error();
        }

        $res = mysqli_query($con,"SELECT * FROM __scannedfiles WHERE description LIKE '%$desc%' AND title='$name' AND doctype='$type' ");

        while($row = mysqli_fetch_array($res)){
            $path=$row[3];
            echo '&lt;a target=\"_blank\" href="'.$path.'"   title=\"\"&gt;'.$path.'&lt;/a&gt; ';
        }
?&gt;
</code></pre>

<p>error:</p>

<blockquote>
  <p>Warning: mysqli_error() expects exactly 1 parameter, 0 given.
  this is the error.</p>
</blockquote>
