![]() |
kujox 4/25/2007 |
hi is it possible to connect to more than 1 databasde at the same time. example, when a customer registers on my site it is read into mysql as filed email and field lastname. i created a new db in phpr and would like to read member info from this database and the data from the new database. is this possible? many thanks.
function get_db2_data($id) {
|
P
|
ploppy author 4/26/2007 |
Thx kujox. where do i place this code in phpr? could you give me example please. thx very much. |
![]() |
kujox 4/26/2007 |
just place it below where you need to access the 2nd database // standard event function
|
P
|
ploppy author 4/26/2007 |
thx kujox. still a bit confused. where does this command need to be placed? and put the call to the function where you need the data
|
![]() |
kujox 4/27/2007 |
thx kujox. still a bit confused. where does this command need to be placed? i do not need people to register, they already have done that from 2nd database. i create a new database with login but when i do, it dosen't see the 2nd database so i have to take my login data from new database which dosen't have any. so, what i would like to achieve is to create a new db, use the login option from database, but take it from the 2nd database where the login info is, and not the new one. does that help? thx
|