Working with the WordPress database class

Discussion in 'PHP' started by mrspeed, Sep 6, 2007.

  1. #1
    Let's say I have a blog about hotels and I also have a database full of additional information about the cities each hotel is in.

    What would be the best way to get the data from the cities table ? It seems to make sense to use the built in WPDB class but I think it means I have to import the "cities" database tables into the wordpress database because I don't think I can override the information in the wp-config file to go after a different database.

    Is it ok to bring more tables into the wordpress database ?

    Also if I don't plan to release the code to the public are there any good reasons to make my database call a plugin ?
     
    mrspeed, Sep 6, 2007 IP