Results 1 to 4 of 4
  1. #1

    Default re connect to Database.

    Say I have made a connection to a second database that is not the cart database. How would I go about reconnecting to the ZenCart database after having connected to a different database?

    I am connecting to a different database on the define_main_page.php and apparently I loose the connection with the carts database at this point. It is not as simple as making a new connection to the cart database - I know this much because I have tried.

  2. #2
    Join Date
    Aug 2006
    Location
    UK
    Posts
    449
    Plugin Contributions
    0

    Default Re: re connect to ZenCart Database.


  3. #3

    Default Re: re connect to ZenCart Database.

    Sorry, apparently you don't need to re-connect to the ZenCart database, the connection is not really ever lost!

    It was one of the variables I was using was conflicting with a native ZenCart variable i.e. the $db variable. So I just changed the $db variable I was using to $dbb and that worked.

    Thanks for looking.

  4. #4

    Default Re: re connect to ZenCart Database.

    Quote Originally Posted by s_t_e_v_e View Post
    thanks Steve, yes there is some helpful info there that I will wade through. Thanks for the quick reply.

 

 

Similar Threads

  1. Can't connect to my database.
    By misty16 in forum General Questions
    Replies: 32
    Last Post: 13 Oct 2010, 05:10 PM
  2. Connect to another Database
    By Jamien in forum General Questions
    Replies: 0
    Last Post: 30 Sep 2007, 01:26 PM
  3. Cannot Connect To Database...
    By kbalona in forum General Questions
    Replies: 2
    Last Post: 3 May 2007, 07:41 PM
  4. cannot connect to database
    By east coast in forum General Questions
    Replies: 1
    Last Post: 23 May 2006, 04:42 AM

Bookmarks

Posting Permissions

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