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