Hi hope someone can help me. I have 2 Database ( Members and Friends). In each database, I have the same field (Firstname, Lastname,Email,Picture)
I am looking for a bit of code help here. Here is what I need.
I have a button called Profile. On click of this button, I need to know in what database the active user is register. (The active user can be register in only 1 of the 2 database) I need to do a simple script on getting the active userID, then search in database Members to see if it exist, if not than look in the other database, etc…
Once the code find in what database the user is created, I just need to forward the user to the proper page ( For Members, wixLocation.to(/Members/${wixUsers.currentUser.id}
); or for Friends, wixLocation.to(/Friends/${wixUsers.currentUser.id}
);
Hope someone can help me
thanks a lot