PHP Tutorial

PhpPot is a PHP tutorial. Tutorials site focuses on web technologies like PHP, jQuery, CSS and Wordpress. Our tutorials are simple and easy to understand with suitable examples and downloads. Welcome!

Recent Tutorials

Dynamic Content Load using jQuery AJAX

November 26, 2014
Loading a webpage with dynamic content is very easy by using jQuery and AJAX. We have already seen about how to load content dynamically on page scroll in a previous jQuery tutorial. In this tutorial, we have stored page contents in database. We are displaying page titles as header menu on top the content area. […]
This tutorial was added to jQuery.

User Login Session Timeout Logout in PHP

November 24, 2014
This PHP tutorial is used for setting user login session expiration time for the logged-in user. Once, this time is elapsed then the user no longer access the authenticated pages of the application. In previous tutorial, we have created session variables once an user logged in to our application. In this tutorial we are going […]
This tutorial was added to PHP.

User Activation Email Sending Script in PHP

November 23, 2014
In this tutorial we are going to see how to send user activation email after user registration. In previous tutorial, we have seen the code for adding new user to our database with a registration form example. In this example, we are using the same code with slight modification. We have added duplicate email validation […]
This tutorial was added to PHP.

PHP User Registration Form

November 22, 2014
In this tutorial we are going to see an example for creating new user registration form. In previous tutorial, while seeing PHP form validation we have seen a registration form example. In this example, first we are validating registration form input validation. And then, we are adding form data to the user table after successful […]
This tutorial was added to PHP.

jQuery Drag and Drop Image Upload

November 21, 2014
In this tutorial, we are going to upload image files by drag and drop from source to destination. We have seen already about how to do drag and drop element by using jQuery. In this tutorial we are having jQuery event handlers which will be triggered based on the drag-drop events. On dropping image files, […]
This tutorial was added to jQuery.

PHP CRUD with Search and Pagination using jQuery AJAX

November 20, 2014
This tutorial is for doing database CRUD operations with search and pagination feature by using jQuery and AJAX. In previous tutorial we have seen the CRUD,search and pagination without AJAX. In this example we are creating jQuery AJAX functions for sending CRUD action request. With this request we are passing the AJAX parameters containing search […]
This tutorial was added to PHP.

Facebook Style URL Extract with PHP and jQuery AJAX

November 18, 2014
In PHP, URL extract can be done in many ways. In previous tutorial, we have seen  about how to extract the remote content from a given URL using PHP cURL script. In this tutorial, we are going to do the Facebook like URL extract by using jQuery and PHP. We are using SimpleHTMLDOM parser class […]
This tutorial was added to jQuery.

PHP Voting System with jQuery AJAX

November 14, 2014
In this tutorial, we are going to create a simple voting system using PHP and  jQuery AJAX. In this system, a visitor can vote (either up or down vote) only once that will be restricted by their IP address. In this example, we are having up and down vote handlers which is triggered on event […]
This tutorial was added to jQuery.

Read Display JSON Data using jQuery AJAX

November 12, 2014
In this tutorial we are using jQuery for reading JSON data from a PHP page via AJAX. In PHP page we are reading array of database records and covert them into JSON data using PHP json_encode(). Then, we are parsing JSON data and iterate object from jQuery function. View DemoDownload jQuery jSON Read Function This […]
This tutorial was added to jQuery.

Facebook Style Like Unlike using PHP jQuery

November 11, 2014
This tutorial has an example code for doing like unlike which we have seen in many website like Facebook. We are using jQuery AJAX to call PHP for updating likes count in database. We are using the IP address of the visitors to compute the like or unlike status. View DemoDownload Database Results to Like […]
This tutorial was added to jQuery.

Dynamic Star Rating with PHP and jQuery

November 10, 2014
In this tutorial we are going list database records and add dynamic rating to those records by using jQuery star rating script. We are having group of stars for each database record. When we add rating to a record, an AJAX call will be sent store the current rating to database. View DemoDownload Display Star […]
This tutorial was added to jQuery.

Favorite Star Rating with jQuery

November 10, 2014
In this tutorial, we are having an jQuery code for doing favorite star rating. It displays list of HTML stars by using li tags. These stars are highlighted by using CSS and jQuery based on the favorite rating selected by the user. View DemoDownload HTML Code for Displaying Rating Stars This HTML code displays list […]
This tutorial was added to jQuery.

PHP RSS Feed Read and List

November 7, 2014
PHP provides simplexml_load_file() function for reading data from xml file. We have seen about this function in Simple XML Parser tutorial. Using this function, we are going to read RSS feeds by passing the feed URL to this function. In this tutorial, we are parsing RSS feed and splitting it into an object array. By […]
This tutorial was added to PHP.

jQuery AJAX Autocomplete – Country Example

November 6, 2014
Autocomplete feature is used to provide auto suggestion for users while entering input. In this tutorial, we are going to suggest country names for the users based on the keyword they entered into the input field by using jQuery AJAX. We have jQuery script to call AJAX request on key-up event. This request will read […]
This tutorial was added to jQuery.

Responsive Social Share Buttons

November 3, 2014
Earlier we saw about responsive web design for designing a login form that adapts various screen sizes. In this tutorial, we are going to see about how to adapt responsive social share buttons for various device view port. If you like to know about what is responsive design, refer this tutorial. In this example we […]
This tutorial was added to CSS.

↑ Back to Top