WordPress Essentials: Interacting With The WordPress Database – Smashing WordPress

In this article, Daniel Pataki will explain how to get started with the $wpdb class, how to retrieve data from your WordPress database and how to run more advanced queries which are tailored to your particular needs, in order to update or delete something in the database, and generally make your website more efficient.