Ok, I'm searching to make use of php to gain access to two databases.

The shape posts into database 1 (person), as i have within the form two drop lower menus that access another database named (pulldown) to populate themselves.

Therefore it would seem like this.

  1. Name:
  2. Surname:
  3. Title (Pull lower menu from second database)
  4. 401k?:

Now we all know to gain access to one database you have to type in

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

How do you use it when you really need to gain access to a couple of them?

The pull lower code is not an problem, but it's when it's placed right into a form like things i want, how I wish to get it done, it's.

Can anybody here help?

What exactly I would like would be to get access to person and pulldown simultaneously, despite the fact that information is being drawn from pulldown and joined into person.

Performs this make sense at all?

$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);