phpeveryday.com

The best tutorial of php, php framework, php strategies, object oriented oriented,


CodeIgniter: Preparing Database

Tag: CodeIgniter, framework, database, phpmyadmin   Category: PHP Framework
post: 24 Jan 2008 read: 2,550


CodeIgniter Step By Step Tutorial: After set database configuration,we will learn about showing data from database in CodeIgniter. But, before that, we prepare a database for practice. This post create a database named "codeigniter" and a table named "hello". We use phpMyAdmin for easy.

  1. Open your phpmyadmin.
  2. Enter database name "codeigniter" in create new database field.
  3. Click Create button. Your database will be created.

    codeigniter database creating use phpmyadmin

  4. Create new table by entering name of new table at create new table field.
  5. Enter number of fields.
  6. Click Go button.
  7. Enter name of field, type, and length
  8. Choose auto increment and check primary key for primary key field.
  9. Click Save button.

    codeigniter - table creating use phpmyadmin

  10. Now, we insert data. Click Insert tab.
  11. Enter data.
  12. Click Go for saving.

    codeigniter database - insert data use phpmyadmin



Series this article:
CodeIgniter: Introduction to CodeIgniter Framework
CodeIgniter: Installation
CodeIgniter: Creating First Application at CodeIgniter
CodeIgniter: Creating and Sending Parameters Between Controller and View
CodeIgniter: Getting Parameters From GET
CodeIgniter: Setting Database Configuration
CodeIgniter: Preparing Database
CodeIgniter: Showing Simple All Data
CodeIgniter: Showing Simple One Data
CodeIgniter: Choosing a Data From GET

| Give Your Opinion | Recommend
Share and Bookmark to: These icons link to social bookmarking sites where readers can share and discover new web pages.
digg del.icio.us technorati Ma.gnolia BlinkList

Recommended articles by other readers:
Web Services: How PHP Kiss VB.NET? (Part 1)
Chart: How to Build Cool Animation Real Time Chart
Joomla: Fast Road to Understand Component Programming
Email: Send Attachement Mail
mod_rewrite - Part 1: create your "fantasy" URL

What do You Think?
Your Name *:
Email *:
(Will not be published)
Website/URL:
Your Comment *:
* Required


615
posting