Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7014647
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T22:32:55+00:00 2026-05-27T22:32:55+00:00

I have two databases Database 1: (Allows users to add posts similar to a

  • 0

I have two databases

Database 1: (Allows users to add posts similar to a blog):

posts table

Users Table

Categories Table

Database 2:

Users table

few other tables irrelevant for this question


What I am after is letting users from Database 2 add posts to database 1 using database 1 categories, but I am unsure how to control this as both databases have users table and the uids are used in many other tables in each database + maintaining 2 mysql links in php is not very easy if the connection identifier was not used in queries when building the scripts especially because both scripts were written like 6 years ago so no fancy stuffs just simple functional scripts.

What’s the easiest way to get around this problem ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T22:32:56+00:00Added an answer on May 27, 2026 at 10:32 pm

    There are a lot of ways to do this, as discussed in this post, but I’ve highlighted the answer that, I feel, is the best solution for the long term.

    Yes, this will require you to tear down a lot of your key constraints and other table-based relationships, but you can repeat this process indefinitely and suffer no consequence (outside of a little headache).

    p.s. the selected answer for that same post is a common workaround for generating new unique ids, but you’ll have to lift any columns that have a AUTO_INCREMENT property for it to work.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a SQL database with two tables like this: Users Id (PK) Name
I have these two database tables: locations id name users id location_id last_name first_name
I have two databases, one is an MS Access file, the other is a
I have two database tables with the following structure: actions: action_id int(11) primary key
I have two databases at two different places, both databases are same with table
I have a database that has two tables, one of which contains a foreign
I currently have two joined tables in a SQL Server database, one with news
Say I have two tables, users and groups each of which has an auto-incrementing
There are 3 tables in my database: Projects, Users and UsersInProjects. In UsersInProjects table
The Setup I have two tables, USERS and PETS . each user has an

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.