phpeveryday.com

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


CodeIgniter - Form: Preparing Table at Database

Tag: CodeIgniter, framework, database, phpmyadmin   Category: PHP Framework
post: 25 Feb 2008 read: 2,568


CodeIgniter Form Step By Step Tutorial - Part 11: After create form for input data, now, we will prepare table at database. We use configuration that we ever create at this post. For this practice, we will create a table named "books" at codeigniter database.
  1. Open your phpmyadmin by point your browser to http://localhost/phpmyadmin.
  2. Enter username and password (if any).
  3. Choose CodeIgniter database.
  4. Enter name of new table and number of fields.

    create table for codeigniter practice

  5. Click Go button.
  6. Enter fields like this:

    create fields for codeigniter practice

  7. Don't forget to add auto increment and primary key like this:

    create primary key for codeigniter practice

  8. Last, click Save button.


Series this article:
CodeIgniter - Form: Creating Skeleton
CodeIgniter - Form: File Structure
CodeIgniter - Form: Creating Layout Code
CodeIgniter - Form: Creating Menu Library
CodeIgniter - Form: Putting Text at Header and Footer
CodeIgniter - Form: Centralizing $data
CodeIgniter - Form: Adding CSS
CodeIgniter - Form: Creating Form HTML
CodeIgniter - Form: Creating Beautiful Form Code
CodeIgniter - Form: CodeIgniter HTML Style
CodeIgniter - Form: Preparing Table at Database
CodeIgniter - Form: Creating Insert Data
CodeIgniter - Form: Creating List Data Use Table Library
CodeIgniter - Form: Creating Table List Without Table Library
CodeIgniter - Form: Using URL Helper
CodeIgniter - Form: Showing Single Data for Form Edit
CodeIgniter - Form: Something Happen With Form Parameters
CodeIgniter - Form: Updating Data
CodeIgniter - Form: Deleting Data

| 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