title: Check if inputted value is associated with another in its row from a database
body: <p>I have a problem that I am not sure where to start with. Basically I have a login page and because there will be multiple users logging in, I thought that I might use my database to validate their logins:</p>
  <p>A. Check if their usernames are in my (pre-created) database.</p>
  <p>B. Check if the inputted username and inputted password match to the same person (in the same row.)</p>
  <p>I am aware this is definitely not the safest way to do this, but it is for a school project, so who cares :)</p>
  <p>I am using JS, jQuery, SQL and as little PHP as possible.
  To connect and manipulate my database I am using the syntax that goes along with:
  Not sure what this is called, whether it is a language, or just part of JS.</p>
  <pre><code>db.transaction(function(tx) {
   etc. 
  }
  </code></pre>
  <p>where <code>db</code> is opening the conn. to the database.</p>