The MU forums have moved to WordPress.org

Database error in Page Template when connecting to Database (1 post)

  1. Mattz
    Member
    Posted 16 years ago #

    I was making myself, after some advice ;), a Page Template.

    This works well, but when I connect to a external DB, so not the wordpress DB I get a strange error:

    WordPress database error: [Table 'my_db_name.wp_1_terms' doesn't exist]

    So my DB where I want to connect to is placed in front of the normal wordpress, and I don't know why.

    I have changed my "global" mysql connect to a $variable and tried to use that in my query, same issue.

    What can I do wrong here ?

About this Topic

  • Started 16 years ago by Mattz