 |
| Introduction |
| PHP is a language that was designed to be easily embedded into HTML pages. Most PHP pages have PHP code and HTML intermixed. When a Web server reads a PHP page...more » |
|
 |
| |
|
 |
| Variables |
| Variables in PHP are denoted by the "$". To assign the value "Hello World" to the variable $str, you simply call it in your code:...more » |
|
 |
| |
|
 |
| Strings |
| String variables are used to store and manipulate a piece of text....more » |
|
 |
| |
|
 |
| Operators |
| Operators are used to manipulate or perform operations on variables and values. There are many operators used in PHP, we have separated them into the follow...more » |
|
 |
| |
|
 |
| If Else Statement |
| One of the most common PHP language constructs that you will encounter is the if…then statement. The if…then statement allows you to evaluate an ...more » |
|
 |
| |
|
 |
| Loops |
| Loops are used to repeat statement or block of statement more than one time. The idea of a loop is to do something over and over again until the task has be...more » |
|
 |
| |
|
 |
| Functions |
| In addition to PHP's built-in functions, you can create your own functions. Remember that if you want to use variables that exist outside of the function, then...more » |
|
 |
| |
|
 |
| Forms |
| Forms are the most fundamental method of interaction for your users. Users must use a form to enter information into a site. Think about it, every bulletin boa...more » |
|
 |
| |
|
 |
| Sessions |
| You cannot track variables across a user session unless you start the session on each page on which you want to use or alter those variables. Starting a sessio...more » |
|
 |
| |
|
 |
| Cookies |
| A cookie is a small bit of information stored on a viewer's computer by his or her web browser by request from a web page. The information is constantly pas...more » |
|
 |
| |
|
 |
| Files |
| PHP is a very useful language for working with files. Although it may not be as robust as other languages, such as PERL, when it comes to parsing files, PHP st...more » |
|
 |
| |
|
 |
| E-mail |
| mail() function is used to send emails from inside a script in php. The Syntax of mail() function is as under....more » |
|
 |
| |
|
 |
| Error Handling |
| Error handling is the process of changing the control flow of a program in response to error conditions. Error conditions can be caused by a variety of fact...more » |
|
 |
| |
|
 |
| File Upload |
| You must first build an HTML form that lets users select a file to upload. ...more » |
|
 |
| |
|
 |
| PHP Databases |
| A database is a collection of data that is stored independently of the manner in which you collect it or may wish to retrieve it. It is organized for ...more » |
|
 |
| |
|
 |
|
 |
| |
|
 |
|
 |
| |
|
 |
|
 |
| |
|
 |
|
 |
| |
|
 |
| Where Clause |
| In Select Query we use WHERE clause to select only data that matches a specified criteria. ...more » |
|
 |
| |
|
 |
| Order By |
| We use Order By Keyword to sort the records in a recordset. The general syntax is as under. Synt...more » |
|
 |
| |
|
 |
| Update Statement |
| Update statement is used to modify the data in a database table. The general syntax is as under. ...more » |
|
 |
| |
|
 |
|
 |
| |
|