Jump to content

Recommended Posts

Hello, i need to compare two tables together. Here's my objective

 

One column in "a" database is named "Saint". And one column in "b" database is named "Nom". If for exemple, in  the column of "a" is the name "test", then it has to look in database "b" and look for the same name. If the same name is on the database b, then i need to get the data (it's an url) of another column in the database b and use it as a href. I already know how to use the href in the project and the rest is done, both database are made and forms ready to insert new data in both but i'm a bit stuck on this problem :(

 

Link to comment
https://forums.phpfreaks.com/topic/315132-double-database-comparaison/
Share on other sites

So you want to do a query against 2 tables that exist in separate databases.  No big deal.  Make it look simpler.  You want to query for a value in one table and see if it is contained in some record in the other table.  Except for the referencing of the different db name, what is the real problem here?  There's got to be more of an issue.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.