Page 1 of 1

1 table on 2 different domains for users

Posted: Mon Mar 10, 2003 7:23 am
by wizzard
Hi,

I'm having 2 sites with 2 different user tables now i want is that a user registered on site a his also registerd on site b i did that correctly in the script with insert into ....

here's my question

Well if a user sign up on site a and another user sign up on site b at the same time i want that this works correct because the user need the same userid on both tables. Is there a function for something like this?

Regards
Kris

Posted: Mon Mar 10, 2003 7:31 am
by rodrigocaldeira
I suggest you to alter your script to register all user (so site a as site b) into the same table.

Posted: Mon Mar 10, 2003 7:34 am
by wizzard
it's really not possible i work with postnuke :(

Posted: Mon Mar 10, 2003 8:20 am
by twigletmac
You're going to have to query the other database when a user tries to register. For example, if someone tries to register on site a you check the site b user table, if they are registered there you give them the same ID as their initial registration, if not you give them the next available ID for site a and insert them into site b's user table as well with the ID from site a.

Mac

Posted: Mon Mar 10, 2003 8:22 am
by wizzard
thanks for the help.