Auto-update owner's picture using a code

Hi @russian-dima ! :blush:

When I tried the code that you have posted, at first, it didn’t work in my end because I didn’t notice that I need to put this code . :sweat_smile:

$w('#image1').src=picData

And now it changed all of the pictures in my page and replaced it with all of the currentuser’s picture, and that is now the problem. I actually wanted a code that could change only the owner’s profile pictures stored in my database (Messages).

Note: In my Messages database, there are a lot of profile pictures from the owner, and of course with the owner’s id in “_owner”.

So I’m thinking that, if there’s a code that could make a query in MemberPage database (my own database - the source of owner’s profile picture)… find and grab owner’s profile picture, then make a query in another database which is Messages database, to find ALL of the owner’s id (more than 1 of course), then the profile picture (with the owner’s id only) will be changed when the owner updated His profile picture in MemberPage database.

Do you get what I mean?

THANK YOU VERY MUCH FOR YOUR HELP! I REALLY APPRECIATE IT! :grin: