Title: scriptbooster's Replies | WordPress.org

---

# scriptbooster

  [  ](https://wordpress.org/support/users/scriptbooster/)

 *   [Profile](https://wordpress.org/support/users/scriptbooster/)
 *   [Topics Started](https://wordpress.org/support/users/scriptbooster/topics/)
 *   [Replies Created](https://wordpress.org/support/users/scriptbooster/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/scriptbooster/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/scriptbooster/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/scriptbooster/engagements/)
 *   [Favorites](https://wordpress.org/support/users/scriptbooster/favorites/)

 Search replies:

## Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)

 *   Forum: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
   
   In reply to: [How to use wp database in custom plugin](https://wordpress.org/support/topic/how-to-use-wp-database-in-custom-plugin/)
 *  Thread Starter [scriptbooster](https://wordpress.org/support/users/scriptbooster/)
 * (@scriptbooster)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/how-to-use-wp-database-in-custom-plugin/#post-14192628)
 * Ok
 *   Forum: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
   
   In reply to: [How to use wp database in custom plugin](https://wordpress.org/support/topic/how-to-use-wp-database-in-custom-plugin/)
 *  Thread Starter [scriptbooster](https://wordpress.org/support/users/scriptbooster/)
 * (@scriptbooster)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/how-to-use-wp-database-in-custom-plugin/#post-14192567)
 * I think sir you not understand
    Read this
 * site/db.php
    site/user/db.php site/wp-content/plugins/hero/index.php These are
   files required belew code
 * private $servername = “localhost”;
    private $username = “xxx”; private $password
   = “xxx”; private $dbname=”xxx”;
 * I am doing it manually by cpanel
 * I want this code connect to wp-config.php
    Database details So me not need to
   do it manually
 *   Forum: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
   
   In reply to: [How to use wp database in custom plugin](https://wordpress.org/support/topic/how-to-use-wp-database-in-custom-plugin/)
 *  Thread Starter [scriptbooster](https://wordpress.org/support/users/scriptbooster/)
 * (@scriptbooster)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/how-to-use-wp-database-in-custom-plugin/#post-14192538)
 * site/db.php
    site/user/db.php site/wp-content/plugins/hero/index.php
 * I need that code in these files
 *   Forum: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
   
   In reply to: [How to use wp database in custom plugin](https://wordpress.org/support/topic/how-to-use-wp-database-in-custom-plugin/)
 *  Thread Starter [scriptbooster](https://wordpress.org/support/users/scriptbooster/)
 * (@scriptbooster)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/how-to-use-wp-database-in-custom-plugin/#post-14192528)
 * Sir, That’s the problem I don’t know how to do it
    private $servername = “localhost”;
   private $username = “xxx”; private $password = “xxx”; private $dbname=”xxx”; 
   Can you type code I will replace with this .
    -  This reply was modified 5 years, 2 months ago by [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/).

Viewing 4 replies - 1 through 4 (of 4 total)