title: What are parameters in php?
body: <p>What are parameters in php?</p>
  
  <p>I have looked online, and there are many different definitions, which is confusing for a newbie like myself.</p>
  
  <p>The reason i ask is because i have the following error:</p>
  
  <blockquote>
    <p>Warning: mysqli_query() expects at least 2 parameters, 1 given in /Applications/MAMP/htdocs/PhpProject2/Area_Rest_page.php on line 22</p>
  </blockquote>
  
  <p>Based on this code:</p>
  
  <pre><code>$sql=mysqli_query("SELECT Rest_Details.Resturant_ID,    
  Rest_Details.Resturant_name, Rest_Details.Res_Address_Line_1, Rest_Details.City_name, 
   Rest_Details.Avg_Del,Delivery_Pcode.Pcode 
   FROM Rest_Details
   INNER JOIN Delivery_Pcode
   ON Delivery_Pcode.Restaurant_ID=Rest_Details.Restaurant_ID
   WHERE Delivery_Pcode.Pcode LIKE '%$searchq'") or die ("could not search!");
  </code></pre>
  
  <p>Line 22 is:</p>
  
  <pre><code>WHERE Delivery_Pcode.Pcode LIKE '%$searchq'") or die ("could not search!");
  </code></pre>