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

Hello, even at the risk of being a nuisance, I'm at my wit's end. I want the background image to change according to the selected country. I've modified my database according to the tutorial video "Boutique." I'm afraid I don't understand the concept. I had no problems filtering records with Wappler 2.x. Now I'm completely lost.

I’ll send you screenshots

Nothing has changed in the logic.
You filter the data the same way, and send the result to the page the same way. I explained you in my previous answers what needs to be sent to the database query as a filter.

Thanks for your. support. At least I made it.

But know, after restart Wappler I received the following error message:

b>Notice: file_put_contents(): Send of 80 bytes failed with errno=32 Broken pipe in /Applications/Wappler.app/Contents/Resources/app/Shared/DMXzone/dmxAppCreator/UI/lib/htaccess_router.php on line 6
{"query":}