Display only the informations you are looking for

Hello

Is it possible to search a database with the elements opposite and display only the results that correspond to the fields filled in by the user?

For example, displaying only the fields corresponding to the chosen profession, and sorting them by geographical proximity?

Thank you

Hey
Of course, you can chain queries with more that one .eq(“fieldKey”, value) in a query.

read more here

I looked.

In fact I have to create a query assigned to the search button that :

  • Sorts the database and selects only the type of occupation the user has chosen from the drop-down menu
  • Displays results from the nearest geographically to the furthest away, all in a new page as a table.

You know how to code that? I don’t know anything about it.

Nearest from the users position when they visit your site?

Yes, or the Postal Code entered in the field otherwise