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

PHP PDF Generation using FPDF

May 25, 2015
In this tutorial we are going to generate PDF from text file data using PHP FPDF library. In this library, there are features to add PDF page, set font, create grid and more. In this example, we are having a text file containing toys detail. We are reading this file content and show it in […]
This tutorial was added to PHP.

PHP Shopping Cart with jQuery AJAX

May 20, 2015
In this tutorial we are going to create shopping cart using jQuery AJAX. In previous tutorial, we have seen simple shopping cart code using PHP without jQuery or AJAX. In this shopping cart example we can add products to the cart to checkout. Using jQuery we are updating product status in UI whether it is […]
This tutorial was added to PHP.

PHP JSON Array Merge

May 14, 2015
In this tutorial we are going to see about how to merge two or more JSON string. This can be done by decoding given JSON objects and encoding after merge. In this example, we are having two JSON objects to merge together. These objects will be decoded into an associative array and encoded after array […]
This tutorial was added to PHP.

Pause Resume Slider using jQuery

April 27, 2015
In previous tutorial we have seen about how to create jQuery image slider. In this tutorial we are adding pause resume control to this slider. We are handling slider pause, resume functions in the mouseover, mouseout events respectively. In this example we have a boolean variable as a flag based on which the slider’s pause […]
This tutorial was added to jQuery.

jQuery Image Slider

April 22, 2015
In this tutorial we are going to see an example of image slider using jQuery. In previous tutorial we have seen already how to run jQuery slide show. In this example we are using jQuery UI library to create image slider. In this image slider we are using slide effect of this library. View DemoDownload […]
This tutorial was added to PHP.

Calculating Hours Difference in PHP

April 15, 2015
In PHP, there are many ways to calculate the difference between two dates. In this tutorial, we are using PHP datetime functions to calculate the hours difference between two dates. In this example we are start and end dates from the user. And then, we use strtotime() to convert the date string into timestamp to […]
This tutorial was added to PHP.

Clone HTML using jQuery

March 24, 2015
In this tutorial we are going to see how to copy and insert HTML element dynamically. In previous tutorial we have added HTML form elements dynamically by using jQuery load() function. In this example, we are using jQuery clone() to copy html element. And then by using jquery insert function we are adding element to […]
This tutorial was added to jQuery.

Toggle HTML with Javascript

March 18, 2015
In this tutorial we are going to see how to create toggle effect using Javascript without jQuery. In previous tutorial we have seen about toggling HTML using jQuery. This example code is preferable when the user don’t want to load the entire jQuery library for toggling HTML. View DemoDownload In this example we are using […]
This tutorial was added to jQuery.

Toggle HTML with jQuery

March 17, 2015
In this tutorial we are going to see how to toggle HTML text element using jQuery. In previous tutorial we have seen horizontal expand/collapse with jQuery toggle(). In this example, we have shown list of limited mail options in a left menu with more/less button. On the click event of this button, we are showing/hiding […]
This tutorial was added to jQuery.

jQuery Mega Menu

March 14, 2015
Mega menu is used to simplify user navigation by covering maximum list of items in a menu dropdown. Using this we can avoid multiple levels of menu navigation. In previous tutorial we have seen multi-level menu using CSS and jQuery. In this tutorial we are going to see how to show jQuery mega menu. View […]
This tutorial was added to jQuery.

Sticky Header using CSS

March 12, 2015
Sticky header in a page remains in a fixed position while scrolling up and down. This will be useful to show the header content always visible even we scroll the page. In this tutorial we are going to see how to show sticky header on page scroll. We are using CSS styles to put sticky […]
This tutorial was added to CSS.

PHP MySQL Inline Editing using jQuery Ajax

March 5, 2015
In this tutorial we are going to see about PHP inline editing using jQuery AJAX. Previously in AJAX Add Edit Delete tutorial we have done the same by using jQuery show/hide. In this example, we are using HTML contenteditable property to handle inline editing. we set this property as true which will allow user to […]
This tutorial was added to PHP.

jQuery Table Row Column Highlight on Hover

February 28, 2015
This jQuery tutorial helps to highlight table row and column on the mouseover event. There are several event handling functions in jQuery to highlight table row/column. In this tutorial we are using jQuery hover() to pass functions to be called on mouseover, mouseout events. These functions are used to add/remove css class selectors to highlight […]
This tutorial was added to jQuery.

WordPress XML-RPC Update Services to Ping

February 26, 2015
When we post a new or update an existing article in our blog, we should use the “WordPress Update Services” to inform other sites and services. Update services are tools that can be used for external notification. WordPress automatically notifies update services by XML-RPC ping each time when the blog is updated. Subsequently, those update […]
This tutorial was added to Wordpress.

PHP Wizard Like Registration

February 15, 2015
Wizard like registration separates registration fields into groups. These group of fields can be seen using a tab like navigation. In previous tutorial we have seen simple PHP registration without wizard. In this example we have three tabs to separate the registration form fields. User can navigate via the registration wizard using previous and next […]
This tutorial was added to PHP.

↑ Back to Top