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 Tutorial

How to Get WordPress Categories

February 2, 2016
In WordPress there are many in-built functions to get all categories. These are, wp_list_categories(), get_categories(), wp_dropdown_categories() and wp_terms_checklist(). These functions are varied based on the output format of the category result they return. These WordPress functions accepts a list of optional parameters to filter categories. These parameter list can be an array or a querystring. […]
This tutorial was added to Wordpress.

DropDown with Search using jQuery

January 12, 2016
Search is an useful feature for a HTML dropdown list. Especially it will increase user convenience to select items from the dropdown having long list. In this tutorial, we are going to list country dropdown with a search option. In previous tutorial we have seen countries and its dependent dropdown list. In this tutorial we […]
This tutorial was added to jQuery.

WordPress Featured Image

January 7, 2016
In this WordPress tutorial we are going to see what is featured image and how to add this for a post. Featured images are used to have a rich look and feel. They can be used to display posts like a gallery. For adding featured image to the posts we have to let the theme […]
This tutorial was added to Wordpress.

jQuery Color Picker – Predefined Colors

December 8, 2015
This tutorial is to see about how to do simple color picker using jQuery. In previous tutorial we have seen date picker by using jQuery UI Library. There are various jQuery plugins providing color picker feature. This tutorial gives a simple example code as a guideline to start writing your own jQuery color picker plugin. […]
This tutorial was added to jQuery.

PHP RESTful Web Service

October 18, 2015
Representational State Transfer (REST) is an architecture style. Web services that follows the RESTful principles are RESTful services. In RESTful services, URIs are used to access the resources. Data and functions are called resources in RESTful glossary. So eventually data and function is what we will access via services. In this RESTful web services tutorial, […]
This tutorial was added to PHP.

CSS Geometric Shapes

October 17, 2015
Following CSS styles will come handy when you want to draw geometric shapes with CSS without using images. Most of them are done using CSS3 and so check if you browser supports it. Circle .circle { width: 100px; height: 100px; background: #07CAF3; -moz-border-radius: 50px; -webkit-border-radius: 50px; border-radius: 50px; } Oval .oval { height: 200px; width: […]
This tutorial was added to CSS.

PHP Cache for Dynamic Web Pages

October 16, 2015
Caching a dynamic web page is very important. When developing a website using PHP, cache is often overlooked. Cache helps to increase the speed of the website response. In web, nano second performance improvement can make wonders. If your site depends on search engine traffic, then cache should be your foremost priority. Google considers page […]
This tutorial was added to PHP.

Error Establishing a Database Connection WordPress Fix

October 14, 2015
How to fix the “Error Establishing a Database Connection” error in WordPress. This is one of the top most dreaded error in WordPress. In this WordPress tutorial we will see about the causes of this WordPress error and how to fix it. This error is frustrating for both the users as well as the WordPress […]
This tutorial was added to Wordpress.

WordPress Child Theme Template

October 6, 2015
A child theme inherits the styles and functionality of an another existing theme which becomes the parent theme. Child themes are best way to modify an existing theme. In this WordPress tutorial let us learn about creating a child theme template with an example. Why should we use a WordPress Child Theme? Following are the […]
This tutorial was added to Wordpress.

PHP Shopping Cart by jQuery Drag and Drop

September 20, 2015
In this tutorial we are going to see a shopping cart example. In this example we are adding products to cart by using drag and drop. In previous tutorial we have seen PHP shopping cart with jQuery AJAX. In this example we are having draggable product items. We are adding these items to cart by […]
This tutorial was added to PHP.

jQuery Menu Slider

August 25, 2015
This jQuery menu slider used to move menu links horizontally on hover. It shows list of menu labels and highlights active menu with screen shot. In previous tutorial we have seen about how to highlight an active menu item. In this slider example we have used jQuery UI sliding function to move menu screen shots […]
This tutorial was added to jQuery.

Paypal Payment Gateway Integration in PHP

August 21, 2015
In this tutorial we are going to see about how to integrate payment gateway in PHP via Paypal. We are going to see an example code in PHP for payment integration. In this example we are using Paypal sandbox (test) mode to check payment flow before going live. Paypal Payment Integration Steps Login / Sign […]
This tutorial was added to PHP.

jQuery Sliding Text on Images

August 4, 2015
In this tutorial we are going to display text on image with a sliding box on the mouse-over event. In previous tutorial we have seen sliding images using jQuery effects. In this example, we are using jQuery and CSS to show the sliding text on images. We are using jQuery slideToggle() function to create the […]
This tutorial was added to jQuery.

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.

↑ Back to Top