Results 1 to 2 of 2
  1. #1
    Join Date
    May 2006
    Location
    Gardiner, Maine
    Posts
    2,371
    Plugin Contributions
    23

    Default what's the best way to access another database?

    I need to pull some limited information for a dropdown list in a sidebox. This information comes from another database on the site.

    I see 2 ways to go:

    1 is to pull that information in a separate php script and upload it to a new table in the zen database. I thought this would be the easiest but I'm having php writer's block (dang arrays)

    So the other way is doing it within the cart itself - in the module for the sidebox. I did try this but it's killing off the sideboxes that fall after it because of my inability to switch from one database connection back to the original.

    So I need advice on the best way to do this and then probably some tips on how to do it!
    The full-time Zen Cart Guru. WizTech4ZC.com
    New template for 2.0 viewable here: 2.0 Demo

  2. #2
    Join Date
    May 2006
    Location
    Gardiner, Maine
    Posts
    2,371
    Plugin Contributions
    23

    Default Re: what's the best way to access another database?

    Since I got no answers, I wrote a script to pull the information from the extra database and inserted it into zen database and we're using a cron job to update the zen table.
    The full-time Zen Cart Guru. WizTech4ZC.com
    New template for 2.0 viewable here: 2.0 Demo

 

 

Similar Threads

  1. What's the best way to add a page?
    By Nahna26 in forum Customization from the Admin
    Replies: 7
    Last Post: 1 Feb 2013, 05:56 PM
  2. Replies: 0
    Last Post: 12 May 2009, 04:42 PM
  3. What is the best way to set shipping?
    By bfwdesigns in forum Built-in Shipping and Payment Modules
    Replies: 2
    Last Post: 18 Sep 2006, 01:59 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg