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 6958097
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T15:05:46+00:00 2026-05-27T15:05:46+00:00

Ok, I am looking to use php to access two databases. The form posts

  • 0

Ok, I am looking to use php to access two databases.

The form posts into database 1 (person), while I have in the form two drop down menus that access a second database named (pulldown) to populate themselves.

So it would look like this.

  1. First Name:
  2. Last Name:
  3. Title (Pull down menu from second database)
  4. 401k?:

Now I know to access one database you need to enter in

$dbc = mysqli_connect(DB_HOST, DB_USER, DB_PASSWORD, DB_NAME)

How does it work when you need to access two of them?

Now the pull down code isn’t an issue, but it is when it is inserted into a form like what I want, how I want to do it, it is.

Can anyone here help?

So what I want is to have access to person and pulldown at the same time, even though data is being pulled from pulldown and entered into person.

Does this make any sense?

  • 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-27T15:05:47+00:00Added an answer on May 27, 2026 at 3:05 pm
    $dbc1 = mysqli_connect(DB_HOST, DB_USER, DB_PASSWORD, DB_NAME1);
    $dbc2 = mysqli_connect(DB_HOST, DB_USER, DB_PASSWORD, DB_NAME2);
    
    // ... some code ...
    
    mysqli_query($dbc1,$query1);
    mysqli_query($dbc2,$query2);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm looking for good/working/simple to use PHP code for parsing raw email into parts.
I'm looking for an easy to use, reasonably complete form validation solution for php.
I'm looking to use SELECT LAST_INSERT_ID() Am using a form to have a user
I am looking for a way to use a PHP script to control access
I have studied the use of Namespaces in PHP a while back but recently
I am looking to use a PHP library for uploading pictures to a web
I've been looking for a good PHP ORM tool to use, and I recently
I'm looking into using Eclipse as a dev environment for PHP projects, but it's
I am a PHP and ExtJS user. I am looking into developing an application
Recently I've been looking into adding a simple HTML5 drag and drop to my

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.