Jump to content

Recommended Posts

Posted

Hi I need a little help in MySQLI wanted to know how to link a patricular column or field of a table in MySQL DB with another column or field of another table in the same DB but different DB name of the same DBThanx in advance

Posted

Hi,My Frnd Then What is the Use of Foriegn Key?Use it and Get your Data From another tableForeign key: Primary Key of one table Thaat is the Foreignn Key in another table as Column with same name Same Value to get dat from another TableSo Use it.If U find Solution of link Then plz tell me alsoBye

Posted

Actually I am a little new to all thisThe purpose for this is that i want to link member username,password ,email fields of a SMF forum with a IPB forumBoth of them are stored in the same DB but but different DB namesI wanted that a member on registering on either one of the forum should get access to the other one alsoI know its a little difficult but if u or anyone can help i would greatly appreciate itSo pls help meThanx in advance

Posted

I am not sure I exactly understand your question, but I guess my first question for you is why don't you just create one table/database for the two to access, at least as far as this information is concerned?And I don't know if this works on MySQL or if it will even help answer your question but but you can access/join tables from different databases, in MS SQL you can do it by listing out the full address for the table. For example:select * from database1.dbo.table1where [insert where statements here]

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...