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

jQuery AJAX Add Edit Modal Window

July 26, 2015
In this tutorial we are going to see how to do AJAX add/edit operations by showing jQuery modal form. In previous tutorial we have seen PHP crud using jQuery AJAX. In this example, we are displaying add and edit forms in modal dialog. After performing Add/Edit, the form will be closed automatically. Modal form includes […]
This tutorial was added to jQuery.

jQuery Form Validation with Tooltip

July 20, 2015
In this tutorial we are validating a contact form and showing error message by using jQuery tooltip. In previous tutorial we have seen an example for jQuery AJAX contact email with form validation. In this jQuery tooltip example, we are highlighting form fields to show validation results. And then we are calling tooplip function to […]
This tutorial was added to jQuery.

jQuery Image Carousel

July 6, 2015
This tutorial is used to create image carousel using jQuery. In previous tutorial we have seen jQuery image slider to turn images with periodically. In this example, we have four images for running this carousel.We are showing previous and next icons on the mouse-over event of the images to be scrolled back and forth. View […]
This tutorial was added to jQuery.

jQuery Active Menu Highlight

June 21, 2015
There are various ways to highlight active menu item. In this tutorial we are using jQuery and CSS for adding menu highlighting style dynamically. In previous tutorial we have seen how to create scrolling menu using jQuery. In this example we have added menu highlight effects on the click event of the menu item. We […]
This tutorial was added to jQuery.

jQuery Scrolling Menu

June 11, 2015
Scrolling menu bar over the page scroll will increase menu usability. It helps user to reach menu area easily. In previous tutorial, we have seen about how to scroll a floating contact form. In this example we are having a fixed positioned scrolling menu. While navigating through this menu we have added jQuery effect to […]
This tutorial was added to jQuery.

Generate PDF from MySQL Data using FPDF

June 8, 2015
In this tutorial we are going to see about how to generate PDF from MySQL table by using FPDF library. In previous tutorial we have seen about simple PDF generation from a text file content by using this library. In this example, we read MySQL table data by using PHP. And then we are calling […]
This tutorial was added to PHP.

Shopping Cart with Multi-Tab Wizard using jQuery AJAX

June 6, 2015
In this tutorial we are going to see a wizard like shopping cart. In previous tutorial we have seen shopping cart with jQuery AJAX. In this wizard like shopping cart example, we separate products and cart items by using tabs. While adding products, the cart tab is updated with the cart item count. View DemoDownload […]
This tutorial was added to PHP.

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.

↑ Back to Top