O'Reilly logo

CodeIgniter for Rapid PHP Application Development by David Upton

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

Chapter 4. Using CI to Simplify Databases

You're looking at CI because you want to make coding easier and more productive. This chapter is about CI's Active Record class. If CI offered nothing more than its Active Record class, it would still be worth every penny of the purchase price. All right, it's free. I'll rephrase that it would still be a major tool to increase your productivity.

Active Record allows you to handle databases with a minimum of fuss and a maximum of clarity. It's simple to use and maintain.

This chapter looks at how you set up a database to work with CI, and then how you use the Active Record class to manipulate the database. You'll see:

  • How Active Record code compares with 'classic' PHP/ MySQL interface code

  • How to write 'read' ...

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