title: Warning: mysqli_query() expects at least 2 parameters, 1 given in C:\wamp\www\login.php on line 49
body: <p>Here is the code it consists of signIn function in PHP session:</p>
  
  <pre><code>function SignIn(){
  
      session_start(); 
  
      //starting the session for user profile page if(!empty($_POST['User'])) 
  
      //checking the 'user' name which is from Sign-In.html, is it empty or have some text 
      { 
  
          $query = mysqli_query("SELECT * FROM User where User = 'UserName' AND pass = 'Password'")or die(mysql_error());
  
          $row = mysqli_fetch_array($query) or die(mysqli_error()); 
  
          if(!empty($row['User']) AND !empty($row['Pass'])) 
          {
              $_SESSION['User'] = $row['Pass'];
              echo "SUCCESSFULLY LOGIN TO USER PROFILE PAGE...";
          } 
  
          else 
          { 
              echo "SORRY... YOU ENTERD WRONG ID AND PASSWORD... PLEASE RETRY..."; 
          } 
      } 
  } 
  
  if(isset($_POST['submit'])) 
  {
      SignIn(); 
  </code></pre>
  
  <p>Giving error:</p>
  
  <blockquote>
    <p>Warning: mysqli_query() expects at least 2 parameters, 1 given in C:\wamp\www\login.php on line 49</p>
  </blockquote>