wpdb

Class Reference/wpdb

Talking to the Database: The wpdb Class WordPress defines a class called wpdb, which contains a set of functions used to interact with a database. Its primary purpose is to provide an interface with the WordPress database, but can be used to communicate with any other appropriate database. The class…


Creating Tables with Plugins

If you are writing a plugin for WordPress, you will almost certainly find that you need to store some information in the WordPress database. There are two types of information you could store: Setup information — user choices that are entered when the user first sets up your plugin, and don’t tend to…