- CodeIgniter 1.7
- David Upton Jose Argudo Blanco
- 257字
- 2021-04-01 13:45:31
Designing the database for our site
We are going to build an example application, so that you will be able to give all this a try. In this case we are going to build a website monitoring program, to help you test websites, keep reports of what has been done in each one, and so on. Firstly, let's set some objectives. These are:
- To manage one or more remote websites with a minimum of human intervention
- To run regular tests on the remote sites
- To generate reports on demand, giving details of the site and of tests conducted
So, the first thing you will need is a database of websites to check. Set up a database called websites
in MySQL or whatever RDBMS you're using. You can get all the SQL necessary to create the tables needed in your application in the chapter Appendix. Copy it and execute the SQL into your database in order to generate the database structure.
Summarizing it a little you will have a site table, to keep information about your sites, a hosts table associated to a domains table, and of course a people table. Don't worry about all the structure for now, just copy it and generate the structure executing the queries.

After creating the database structure take a look at the preceding diagram, it will help you know which tables relate to other tables. You will need a simple flexible way of accessing all this. So, let's turn to what CI offers, and in particular to its Active Record class.
- Vulkan學習指南
- EJB 3.0 Database Persistence with Oracle Fusion Middleware 11g: LITE
- Python Text Processing with NLTK 2.0 Cookbook: LITE
- Adobe創意大學Illustrator產品專家認證標準教材(CS6修訂版)
- 中文版Photoshop CS6平面設計實用教程(第2版)
- Joomla! Social Networking with JomSocial
- iPhone Applications Tune/Up
- Capture One 22 Pro高級實戰教程
- 3ds Max/VRay印象燈光/材質/渲染技術精粹Ⅲ
- 中文版Illustrator 2020基礎教程
- PPT設計與制作實戰教程
- Building Websites with Mambo
- Photoshop CS6淘寶美工完全實例教程(全視頻彩色版)
- 零基礎學Revit 2018建筑設計(全視頻教學版)
- 深度學習之圖像識別:核心技術與案例實戰