WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Info about some code to access the DATABASE (3 posts)

  1. _OMEGA_
    Member
    Posted 4 years ago #

    Hi all I have a little question.
    In a plugin code I saw this:

    global $wpdb;
    $wpdb = new wpdb(DB_USERNAME, DB_PASSWORD, DB_TABLE, LOCALHOST);

    Is it safe to put there these infos?

    Anyone can access to them using a normal browser during the surfing on the website?

  2. MichaelH
    Member
    Posted 4 years ago #

    Should be okay, but review wpdb to see how to use that class.

  3. _OMEGA_
    Member
    Posted 4 years ago #

    Ok perfect thank you for the info :D
    I was worried that if I put there the infos all can read them in any way.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.