Passing variables to a query

They are not connected. There is no join.

Well how is the gallery going to be filtered then? How is it connected to the country? Do you store the country ID there?

I store the Id Country in Table Picture

Well then simply use the first query result (id) in the second query as a filter.

That’s very much, I’ll try this solution

An image is displayed, but it doesn't change when I select a new country. This is due to the [0] in <h3 class="white">Das Bild {{serverconnect1.data.DBLaender[0].Bild}};</h3>. It is not dynamic!

However, it should change when a new menu item is selected.

I think that you should simplify your database structure. To get an idea of what I am talking about, have a look at this video

The database section starts at 2min 23 secs. The video shows a SQLite database, but the same goes for any other database. Where Categories and Products are created, in your case you would have Countries and Images

If you need more info, have a look at these two playlists

  1. https://youtube.com/playlist?list=PLUjqTJN3byC8-qBFItSeBYuXolTng41pN&si=6vzbpenHFtGPv3N3
  2. https://youtube.com/playlist?list=PLUjqTJN3byC_14StBaQyXdhl_K29n5coI&si=BfJ3cKM6-HDevja8