title: Check if the input matches the data in mySQL
body: <p>I have 2 inputs.</p>
  
  <pre><code>&lt;input maxlength="40" type="text" style="width:250px;height:50px;font-  size:20px;margin: 0 auto;margin-top:5px;" name="usernameInput" /&gt;
      &lt;input maxlength="40" type="text" style="width:250px;height:50px;font-size:20px;margin: 0 auto;margin-top:5px;" name="passwordInput" /&gt;
      &lt;input type="submit" /&gt;
  </code></pre>
  
  <p>And I have a mySQL database called log.
  In log I have username and password.</p>
  
  <p>What I want to do is that when a person tries to "login" then php checks if the username matches the input and then checks if in the same row the password matches the input.
  How do I do it?</p>