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
https://forums.phpfreaks.com/topic/56949-solved-how-to-fetch-info-from-db/
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

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?

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.