Tidus Posted August 19, 2008 Share Posted August 19, 2008 Hi guys! I am new here also new in php I am working on some register script on phpbb. What I need is take entered username,e-mail,password and send it to another database table when clicked confirm in phpbb register form. I mean this: There r 2 different databases and thoose dbs in different hosts. When user writes his username , pass.. etc in the form, scripts takes this information write databases both phpbb and other db. I can manage rows,passwords,usernames.. etc. I only wanted how to connect and write infos to different database in one form action I am also working on phpbb's default registration script Link to comment https://forums.phpfreaks.com/topic/120337-same-form-but-connect-different-databases/ Share on other sites More sharing options...
r-it Posted August 19, 2008 Share Posted August 19, 2008 I do not know the coding of phpbb (i dnt like pre-done stuff period) but the way to do it would be to check the page that is handling the POST request from the login/register page, then you would add code to that page to insert into the other database at the same time. Link to comment https://forums.phpfreaks.com/topic/120337-same-form-but-connect-different-databases/#findComment-619992 Share on other sites More sharing options...
Tidus Posted August 19, 2008 Author Share Posted August 19, 2008 you can also think my question like i am writing normal php code. there no difference between phpbb's system hmm you mean i can open another connection like $db->connect(localhost...) ? thanks for your reply Link to comment https://forums.phpfreaks.com/topic/120337-same-form-but-connect-different-databases/#findComment-619996 Share on other sites More sharing options...
r-it Posted August 19, 2008 Share Posted August 19, 2008 yes i'm sure you can do that but i'd rather use the original mysql_connect function as you don't know what errors can arise Link to comment https://forums.phpfreaks.com/topic/120337-same-form-but-connect-different-databases/#findComment-620029 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.