Jump to content


PHP MYSQL HELP -- Connecting multiple databases

  • Please log in to reply
1 reply to this topic

#1 etnies99

  • New Members
  • Pip
  • Newbie
  • 2 posts

Posted 12 October 2006 - 06:12 PM

Hi, I have a website I have been working on, www.usgolfpost.com.  It currently has a blog and a forum section which require registration.  Each application must be registered seperatly though.  I plan on haveing two more sections that will require a registration and login.  So in all I will have 4 different sections that must be registered and have a login access.  They all are written in php and connect to mysql databases. 

What I need help on is how can I make it so a user only has to register once for all sections.
Can the databases be combines/shared, or is there a way to populate all the databases through one form?
Does anybody have an example script or anything.  Any info will be helpful


#2 phporcaffeine

  • Members
  • PipPipPip
  • Advanced Member
  • 361 posts
  • LocationOhio, USA

Posted 12 October 2006 - 06:37 PM


    I take it that you are not the author of these applications and are now trying to provide a mash-up of sorts.

    The easiest way to do it is to nail down how each app registers by looking in the code of each app.  Then you would make a global registration that covers all requierments by all the applications (maybe some checkboxs that ask, "do you want app xyz", "do you want app abc" ... etc and then some AJAX to add registration fields based on app selection).

Bottom line, there is no easy way because these apps obviously were developed as stand-alones.

Ryan Huff
President & Founder, MyCodeTree
support@mycodetree.com | http://mycodetree.com

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users