title: Calling MySQL Stored Procedure through PHP
body: <p>I've installed XAMPP and have been attempting to interrogate my database using PHP although I keep getting the same error. </p>
  
  <pre><code>&lt;?php
  $servername = "localhost";
  $username = "root";
  $password = "secret";
  
  // Create connection
  $conn = new mysqli($servername, $username, $password);
  
  // Check connection
  if ($conn-&gt;connect_error) {
      die("Connection failed: " . $conn-&gt;connect_error);
  } 
  
  // Perform queries 
  $result = mysqli_query($conn, 
      "use edgeserver; call ShowAll") or die("Query fail: " . mysqli_error());
  
    //loop the result set
  while ($row = mysqli_fetch_array($result)){   
       echo $row[0] . " - " . + $row[1]; 
    }
  
  $conn-&gt;close();
  
  ?&gt;
  </code></pre>
  
  <p>However this presents me with the following error:</p>
  
  <pre><code>Warning: mysqli_error() expects exactly 1 parameter, 0 given in C:\xampp\htdocs\amit\ShowAll.php on line 16
  Query fail:
  </code></pre>