Results 1 to 5 of 5

Thread: switch DB?

  1. #1
    Join Date
    Nov 2004
    Posts
    1,822

    Default switch DB?

    Since upgradign to the latest version of indexU i have a problem with my custom blocks.

    Previously i had a seperate database on a different website (also running indexU) in the block i create a connection to this database and pulled information from it to display on website2, for example :

    "Here are some tourist attractions within 5 miles of where you are staying"

    I can no longer do this in the new version, i think it has somethign to do with switiching the database connection, it seems to the execute the rest of the script trying to egt the information from database2... i have tried mysql_close() doenst seem to help...

    Anybody got anything i could try?
    Main IndexU sites : | Campsite Directory | Tourist Guide | Places2B | AfterDirectory <-- Half price submission using coupon DP50 (from just $11 premium, and $10 basic permanent )

  2. #2
    Join Date
    Aug 2001
    Location
    Indonesia
    Posts
    3,732

  3. #3
    Join Date
    Nov 2004
    Posts
    1,822

    Default

    nested blocks? how would that help?
    Main IndexU sites : | Campsite Directory | Tourist Guide | Places2B | AfterDirectory <-- Half price submission using coupon DP50 (from just $11 premium, and $10 basic permanent )

  4. #4
    Join Date
    Aug 2001
    Location
    Indonesia
    Posts
    3,732

    Default

    Since upgradign to the latest version of indexU i have a problem with my custom blocks.
    Please post your custom block here.

  5. #5
    Join Date
    Nov 2004
    Posts
    1,822

    Default

    Well i do have custom blocks, but for the sake of this example :

    I want site 1 to connect to site 2's database, and retrieve the listings in the category ID=2 and display it in a custom block... I use all the same code thats working on site1, and conencting to site 1s database (working fine)

    I figure all i need to do is create a connection string for the second database, which i did in application.php and called it somethign different with the new settings.

    In version 5.2 their is no longer connection string in application.php, so i put this information actually into the block. I dont se ehow this effects anything, but it now loads the block fine, but everything executed after the block loads has conenction errors... like its tryign to find the information in database2... I have closed the connection i create in the block, and dont really understand whats happening.
    Main IndexU sites : | Campsite Directory | Tourist Guide | Places2B | AfterDirectory <-- Half price submission using coupon DP50 (from just $11 premium, and $10 basic permanent )

Similar Threads

  1. switch to smarty template engine
    By dody in forum v5.x
    Replies: 20
    Last Post: 01-10-2005, 04:58 PM

Posting Permissions

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