Using two databases by the same script on one server?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Matten
    New Member
    • Sep 2012
    • 1

    Using two databases by the same script on one server?

    Hi guys,
    i have auction script(phpprobi d) i want to add the same script on a sub folder to create a complete auction for Motors. using extra db.
    NOW my question is how to have 2 db mysql different Path the first
    First DB config => www.myauctionsi te.com
    second DB config => www.myauctionsi te.com/Motors/

    now i want user to register in one of the site and have the user information insert in 2 of them.
    both have the same code and files - query - tables, but different path

    but the input will always be different in both

    can i get the user table to be as a 3rd party for both site path ? how to give both path the same user access.
  • jdstankosky
    New Member
    • Sep 2012
    • 30

    #2
    Use a single table for the user information, and separate tables for the two website specific information. You don't need 2 databases. This is pretty basic usage for a database.

    Comment

    Working...