WordPress.org

Support

Support » How-To and Troubleshooting » How to connect to an SQL database from WordPress plugin

How to connect to an SQL database from WordPress plugin

  • 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?

Viewing 1 replies (of 1 total)
  • catacaustic

    @catacaustic

    very awesome

    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.

Viewing 1 replies (of 1 total)
  • The topic ‘How to connect to an SQL database from WordPress plugin’ is closed to new replies.
Skip to toolbar