Database Connection (4 posts)

  1. webdad3
    Posted 6 years ago #

    I am BRAND new to creating plugins. I have successfully created a plugin that works but I am concerned with the php code as it has a username and password for the Database in it. Any buddy with a limited amount of knowledge would know more information then I would like to share about my DB.
    The plugin has simple select statement in it...

    Is there a tutorial that explains what I can do to prevent my DB connection from being shown to the public or whoever might use my plugin?



  2. figaro
    Posted 6 years ago #

    I'm not a plugin developer and don't have a video for this, but wouldn't it be better to get that information from the wp-config.php using something like an include statement......

  3. webdad3
    Posted 6 years ago #

    That is part of what I was looking for... I guess the other part is that the DB that I'm using is not a WP DB. It is the DB of my website.

    Although technically it is on the same server and all that but if I used something like the wp-config.php how could I make the plugin available to the public?

  4. figaro
    Posted 6 years ago #

    Again, I'm not a plugin developer, but it seems to me that you will need to incorporate the tables into the wp db if you want to make it available to the public, otherwise, what good would it be to others?

Topic Closed

This topic has been closed to new replies.

About this Topic