Friday, 30 March 2012

Simple MVC base Login Form in PHP

This tutorial is about MVC in PHP Login form. MVC is a Model View Controller pattern. This pattern is very commonly used today in the programming.
Model: Model manage the data, it stores and retrieve the data usually from the data base.
View: View represent the data in the required format.
Controller: it is handle the Model and View layer. Controller take the request from the client send to Model for  operation and then send the required output to View.
Now let start to create the simple login form in php using MVC pattern.

Thursday, 29 March 2012

foreach Loop Example in PHP

here is the example about foreach loop. It is the Loop type. Now check the basic syntax of foreach loop.

The do...while Loop Example in PHP

In this Example I discus the do...while loop in php. In the do...while loop first execute the statement of loop and then check the condition. When the loop start first time the statements between the loop must execute and after that statements will execute if the condition will true, if the conditions will not true then the loop will be terminate.

Two dimension Array Example in PHP

this example shows the behavior of two dimension array.two dimension means in rows and columns like table.
[0][0]  [0][1]  [0][2]

[1][0]  [1][1]  [1][2]

[2][0]  [2][1]  [2][2]

PHP Array Example

This tutorial is about the Array. Array is a list of data. Like
Car          // Array name

  • CIVIC                    // data of array
  • CITY                        // data of array
  • SANTRO                  // data of array

Wednesday, 28 March 2012

Display Data in the Gridview from the Database in PHP

This new tutorial or post is about how the data show in the Gridview from database in PHP.
I am using the same database which i created in the previous post Or tutorial ((PHP Form Tutorial).
Database Name:  clientinformation
Table Name:    client_reg

Sunday, 25 March 2012

PHP Form Tutorial ( Stored Client Information in Database)

This tutorial is about the PHP with MySQL Database. In this tutorial you learn how to insert/save the PHP form data into Database.
For this tutorial  follow these simply 4 steps :

Interacting with the User?

Variables can used to stored the data or information that is entered by the user. Like in example, if the textbox with name username on the page, the value entered into the box will available to PHP script  as the variable $username.

PHP Syntax?

PHP syntax is:
<?PHP  -  it is starting tag
?>         -  it is ending tag.


PHP stands for Hypertext Preprocessor. PHP is the server side  language. It is used to create the dynamic websites. PHP mostly use with the MySQL. MySQL is a database.
For the PHP it is necessary to install the server (Apache, IIS, etc), PHP and MySQL.
Lets start the working in PHP.

Thursday, 15 March 2012

Time and Billing PHP Project

Download Time and Billing PHP Project:

In this project package you can see other types of tutorial like css,php,dhtml,java script examples tutorials.

Time and Billing
Time and Billing

Here is the link for download the project.

Bind DropDownList Controll to SqlDataSource

Hi Guys!
In today tutorial we will learn that how to bind the DropDownList to Sql DataServer. This is very simple and we take a very easy steps and will bind the DropDownList.
Here is the simple steps:

Step 1:

Add the DropDownList and SqlDataSource on the page. Select the SqlDataSource and click on the small button and then click on the Configure Data Source...

Configuration Data Source
SqlDataSource Configuration

Step 2:

Configuration Data Source window will b open. Now choose the data connection from the DropDownList and click on next.

Choose Data Connection
Choose Your Data Connection

Step 3:

Now save the connection string just simply click on the next button.

Connection string
Save Connection string

Step 4:

In this Step you configure the select statement. first select the "Specify Columns from a table or View" option from the radio button. then select the table from the DropDownList. Now select the fields of the table and click next.

Configure Select Statement
Configure Select Statement

Step 5:

Now select the DropDownList From the Page. and click on the "Choose Data Source"

Choose Data Source
Choose Data Source

Step 6:

Choose Data Source window will appear. Now select the data source from the first dropdownlist, then select a data field to display in the dropdownlist from the 2nd dropdownlist and from the last dropdownlist select a data field fro the value of the dropdownlist and press ok button.

Select the Fields
Select the fields

Step 7:

Now Databound with the DropDownList. Run the project and see the output.

Data Bound