title: what's the meaning of 'admin' OR 1=1 -- '
body: <p>The following query return all the passwords in the table tbl_user but I can not understand why this is happening.</p>
  
  <pre><code>SELECT password FROM tbl_users WHERE name = 'admin' OR 1=1 -- '
  </code></pre>
  
  <p>Please help me to understand this part of the query: 'admin' OR 1=1 -- '</p>
  
  <p>Can you introduce other threats like this (website, book, etc)?</p>