Jump to content

[SOLVED] How to fetch info from db...


csgcarl

Recommended Posts

Hello there,

 

Ok I know you can get info from db by doing $member[logo]... but say I wanted to get info from another db e.g. on website I want to get info from the forum db, but the site already has a db... so when I put $member[logo] on site it gets it from site how do I make it fetch the info from the forum$member[logo].

 

If you undertand what I mean, I have had alook around but not 100% sure on how it's done.

 

Regards,

Carl

Link to comment
Share on other sites

Ye basicly what I'm going to do is have an online form(site)... and the users field will need to get the info from the forum db instead of the site db... so ye 2 databases in the same script.

 

I hope that explains it more, hehe I know what I need to do but not sure how:(

 

Thanks for your reply Stealth.

 

Carl

Link to comment
Share on other sites

so how would I get info from another db field... as say the config file says this:

// MYSQL DATABASE INFO

$db[host]		='localhost';
$db[uname]		='bseadmin_test';
$db[pass]		='password';
$db[name]		='bseadmin_test';

 

But if I say enter $member[logo] it will get the info from the above db (bseadmin_test) but if I wanted to get some of the members info from another db say $member[picture] (bseadmin_test1) how could I do this?

Link to comment
Share on other sites

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.