Category: PHP Tutorial

Connect php code with mysql database and perform insert update and delete in wamp or xampp or lamp server

Connect php code with mysql database and perform insert update and delete in wamp or xampp or lamp server

Today we are going to learn how to connect php code with mysql database and perform insert update and delete in wamp or xampp or lamp server. This would require a mysql information and an online development surroundings using mysql, apache and php and a straightforward text editor. The tutorial takes you thru establishing a […]

Read More
PHP Mail Function | PHP Send Mail With Attachment

PHP Mail Function | PHP Send Mail With Attachment

The mail sending process is become a commonly used process for any website, it may used for the contact form or newsletter or a shopping purpose mail generated and sent from the website or system it maybe through crone job also. So PHP Mail Function provides us the functionality to send mail in a proper […]

Read More
PHP File Read, Write, Append and Delete

PHP File Read, Write, Append and Delete

In our previous post we have learned how to upload files in php, in this post we are going to learn Read, Write, Append and Delete php file. In case of php file function there is mainly 4 process and they are 1. Read File 2. Write File 3. Append File 4. and Delete File […]

Read More
PHP File Upload – how to upload a file in php

PHP File Upload – how to upload a file in php

The PHP File Upload process is worked while a file is sent from a html form and after submission of the form the file is saved in a temp location ( $_FILES[‘image’][‘tmp_name’] ) then using the php function move_uploaded_file() you van be able to upload the file from temp location to a folder of your […]

Read More
PHP Include , Require , Include Once (include_once) and Require Once (require_once)

PHP Include , Require , Include Once (include_once) and Require Once (require_once)

If you need to separate a file into many part and then want to marge them into one php file then you need to use php include, and they are: 1. include 2. include_once 3. require 4. require_once PHP include This is used while needed to include a file into another file , ** Include […]

Read More
PHP Functions

PHP Functions

A php function is used to execute a branch of code when needed from the pages where the function is included, and the php functions can call several time, A normal PHP function to write a normal php function first declare the function then write some sode inside the function or inside the scope and […]

Read More
PHP Operators

PHP Operators

PHP Operators are the characters used for mathematical , Assignment , Comparison , Logical or Concatenation Operations. PHP Concatenation Operators Dot (.) is used for concatenation two or more string. Example: <?php $srr = ‘World’; echo “Hello” . ” ” . $srr; // it will print Hello World ?> PHP Mathamatical or Artithmetic Operators the […]

Read More
PHP For Loop and Foreach Loop

PHP For Loop and Foreach Loop

The php for loop and Foreach both loop is used for execute a portion of code several time, the php for loop is mainly used for execute a branch of code with counter with increment or decrements by a particular integer value and Foreach loop is used for get values from array and work with […]

Read More
PHP While Loop and Do While Loops

PHP While Loop and Do While Loops

Both php while loop and do while loop are used to execute bulk ok code several time and using that we can execute bulk of code several time which is inside the scope. Most of the time the php while loop is used in printing of database table values, and do while is used if […]

Read More
PHP Array

PHP Array

If you have a lot of data and needs to store into veriables then its become very difficult to handle the veriables, in this case php array helped to store group of data in a organized way, and php array helped to easily find the data stored on it, There are 3 different types of […]

Read More