官术网_书友最值得收藏!

  • CodeIgniter 1.7
  • David Upton Jose Argudo Blanco
  • 198字
  • 2021-04-01 13:45:30

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! Let's 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 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" queries, and display the results
  • How to do create, update, and delete queries

CI allows you to write queries in the traditional "classic" PHP style as well, but let's not get into details of that. It's fully covered in the online user guide. Jose started off by doing it the traditional way, but once he tried Active Record, he never looked back.

主站蜘蛛池模板: 康定县| 青岛市| 鄄城县| 鲜城| 乌拉特中旗| 开平市| 马关县| 长垣县| 广河县| 千阳县| 昌宁县| 六盘水市| 天柱县| 长顺县| 林口县| 新巴尔虎左旗| 青岛市| 马关县| 翁源县| 抚顺县| 碌曲县| 洪洞县| 辽阳县| 特克斯县| 全南县| 克拉玛依市| 株洲市| 久治县| 商水县| 阿合奇县| 临湘市| 楚雄市| 盖州市| 锡林郭勒盟| 邵阳市| 仲巴县| 凉城县| 南投市| 循化| 醴陵市| 唐河县|