O'Reilly logo

CMS Made Simple Development Cookbook by Samuel Goldstein

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Making a database query from a module

A significant percentage of CMS Made Simple modules exist to process data: they manage lists of things, they allow users to create, track, and manage records, and they store relationships between disparate collections of information, and so on. The mechanism behind much of this data processing is the backend database. Rather than implementing its own data storage system, CMS Made Simple works with a number of Relational Database Management Systems (RDBMs) including popular Free/Open Source databases like MySQL and PostgreSQL.

As discussed throughout this chapter, CMS Made Simple provides a database API, which allows modules to access the database. This recipe shows how to use the database API to query a list ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required