Database and connecting

How do I upload photos from database to dynamic gallery according to their category. For example for books category, I need only the photos of that chosen category

If I understand correctly, you just want to display only photos of the “books” category on a page.

Create a page, add a gallery to it. Add your dataset to the page and then click back on the gallery and click connect to data. Connect the dataset and then at the bottom, click add filter and create your filter for the books category

Hi Shubham!

As poolshark314 suggested above me, use a dataset in order to create a connection between your collection and your gallery.
Here are some articles that might help you achieve that exactly:
Wix Code: About Database Collections
Wix Code: About Connecting Page Elements to Database Content
Wix Code: About Dynamic Pages

Hope it helps!