WordPress.org

Ready to get started?Download WordPress

Forums

Connect to MySQL using wp-config values (2 posts)

  1. nsxpower
    Member
    Posted 9 years ago #

    I'd like to be able to connect to mySQL from one of my plugins using value entered in wp-config.php, so that users don't have to edit anything. But I am having trouble fetching them. Any ideas?

  2. nsxpower
    Member
    Posted 9 years ago #

    Nevermind, I was using an old pre-1.2 script. 1.2.1 uses constants in wp-config.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.