WordPress.org

Forums

How to connect to an SQL database from WordPress plugin (2 posts)

  1. WPNewbie14
    Member
    Posted 10 months ago #

    I have a table in my SQL database which is displayed as following:

    NAME          LOCATION           DATE
    John          South              2/21/2014
    Mike          SouthEast          3/14/2014
    Michelle      South              4/1/2014
    Haan          West               6/1/2013

    I have three Multiple Term Selection Widget in my WordPress site. Since I am starting out with WordPress, I was wondering how can I populate each widget with each column from my SQL table?

  2. catacaustic
    very awesome
    Posted 10 months ago #

    You'll want ot read up about the $wpdb object, as that's the standard WordPress way of intereacting with the database. That will let you perform any queries that you need to on your database.

Reply

You must log in to post.

About this Topic