Support » Fixing WordPress » Info about some code to access the DATABASE

  • Resolved _OMEGA_

    (@_omega_)


    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?

Viewing 2 replies - 1 through 2 (of 2 total)
  • MichaelH

    (@michaelh)

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

    _OMEGA_

    (@_omega_)

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Info about some code to access the DATABASE’ is closed to new replies.