Support » Plugins and Hacks » Hacks » add a new wpdb class

  • larzo92

    (@larzo92)


    hi, I want to add a new class wpdb $wpdb1 = new wpdb(my_db_login, my_db_password, my_DB_NAME,my_DB_HOST); for my wordpress blog but I don’t know how.
    when I put it the following class in wp-config i got this error message
    Fatal error: Class ‘wpdb’ not found in line 80

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator bcworkz

    (@bcworkz)

    The file containing the class declaration is loaded after wp-config.php. Your code needs to be executed after WP finishes loading. Other than bad timing, you have the right idea.

    larzo92

    (@larzo92)

    ça veut dire in wp-config ? :s

    Moderator bcworkz

    (@bcworkz)

    Huh? Anglais s’il vous plaît.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘add a new wpdb class’ is closed to new replies.