PHP Error: Mysqli_real_query() expects exactly 2 parameters, 1 given (line 6) + mysqli_use_result() expects exactly 1 parameter, 3 given (line 7) : <p>I have a page from a website that I took over a few years back. I am a novice on php and are more into Wordpress. Now the page is starting having problems and I get the above errors in the given lines.<br>
This is the code:    </p>

<pre><code>1. $db = mysqli_connect("localhost", "vrvtnl_data", "eric") or die 
   ("fout1"); 
2. //mysqli_select_db("vrvtnl_data",$db) or die ("fout2"); 
3. function test($nummer,$week){ 
4. $sql = 'SELECT * FROM `vakantie` WHERE `tandarts` =' . 
5. $nummer . ''; 
6. $result = mysqli_real_query($sql); 
7. $test = mysqli_use_result($result, 0, "". $week .""); 
8. return $test; }
</code></pre>

<p>Can somebody help me, as said I am a novice with php, so detailed help ia appreciated.</p>
