Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Accessing multiple databases


tfittsy

Recommended Posts

Posted

I have a few osC stores up on a shared host. Right now I can change the configure.php file and have it access any of the other stores information instead of the one matching the domain name. What I'd like to do is make a list of stores and their settings for the php and redefine the constants that are defined in configure.php so that I can display order information from each of the osC stores on one screen. it would be fine if when you clicked the order it took you to the admin for the store where the order was placed. Anyone know if this would be possible?

Posted
I have a few osC stores up on a shared host. Right now I can change the configure.php file and have it access any of the other stores information instead of the one matching the domain name. What I'd like to do is make a list of stores and their settings for the php and redefine the constants that are defined in configure.php so that I can display order information from each of the osC stores on one screen. it would be fine if when you clicked the order it took you to the admin for the store where the order was placed. Anyone know if this would be possible?

 

 

Well if you can connect to all the dat asbes from one page then yes it is possible.

 

 

 

Satish Mantri

Ask/Skype for Free osCommerce value addon/SEO suggestion tips for your site.

 

Check My About US For who am I and what My company does.

Posted
Well if you can connect to all the dat asbes from one page then yes it is possible.

Satish Mantri

 

OK, I guess I sort of answered my own question of is it possible when I had already done it. How do I go about doing it though? I guess I need to write my own function to go through and access each database. I would guess I can't just use the standard tep_db_fetch or tep_db_query because they use the constants that are defined in configure.php. I would need to send variables to the function to tell it which database to use. Any ideas where I would get started on that?

Archived

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

×
×
  • Create New...