title: Query by two fields for login in Firebase with PHP
body: <p>I'm starting with firebase to use with Flutter. For the backend, I wanted to use PHP with the <a href="https://firebase-php.readthedocs.io/" rel="nofollow noreferrer">https://firebase-php.readthedocs.io/</a> SDK... Found the samples on basic queries .... get user by ID for example:</p>
  <pre><code>public function get(int $usuarioID = NULL) {
      if (empty($usuarioID) || !isset($usuarioID)) { return false; }
      if ($this-&gt;database-&gt;getReference($this-&gt;dbname)-&gt;getSnapshot()-&gt;hasChild($usuarioID))
      {
          return $this-&gt;database-&gt;getReference($this-&gt;dbname)-&gt;getChild($usuarioID)-&gt;getValue();
      }
      else
      {
          return false;
      }
  }
  </code></pre>
  <p>But how can I query by email+password to see if the login is ok? does the getChild allow mixed/multiple parameters?</p>
  <p>Thanks!
  Diego</p>
  <p>Edit: similar question here: <a href="https://stackoverflow.com/questions/26700924/query-based-on-multiple-where-clauses-in-firebase">Query based on multiple where clauses in Firebase</a>. It still doesnt cover 100% but seems to me like the path to follow. Thanks for the answer/comments</p>