PHP Tutorial

PhpPot is a PHP code and tutorials blog passionately published by Vincy. PHP, jQuery, WordPress, MySql, Ajax are the main technologies in focus here. You can find code to make your web applications better. Code present here are simple and easy to use with suitable examples, demo and downloads. Welcome!

Recent Code and Tutorial

AJAX Cart Edit in PHP Shopping Cart

February 29, 2016
This Shopping cart tutorial is providing cart edit feature by using jQuery AJAX. In previous tutorial we have seen simple shopping cart. This edit feature allows to change the existing cart item quantity in session. In this example, we are showing item quantity in a text box to allow edit. This cart edit function is […]
This tutorial is added to PHP code section.

Responsive PHP Shopping Cart

February 29, 2016
In this tutorial we are going to create a shopping cart gallery page with responsive design using PHP. In a previous tutorial we have seen shopping cart with multi tab. With a responsive design the shopping cart page will be fluid to fit into any viewport. In this example we are achieving this responsive design […]
This tutorial is added to PHP code section.

jQuery Background Slider

February 21, 2016
Web page content with background slideshow will give rich look and feel and a beautiful page. In previous tutorial we have seen jQuery image slider by changing tags sources at periodic interval. We are using jQuery Backstretch plugin to run a background image slide for a web page. This slider plugin stretches images to the […]
This tutorial is added to jQuery code section.

PHP MySQL Date Range Search with jQuery DatePicker

February 14, 2016
In this tutorial we are going to see about how to search database records date between two given ranges. It will return the filtered results from database based on these dates input. In this tutorial we are using jQuery DatePicker to choose the dates for the search options. These date inputs are used to form […]
This tutorial is added to PHP code section.

WordPress Custom Walker

February 11, 2016
WordPress Walker class helps to parse a formatted result generated by the functions like wp_nav_menu(), wp_list_categories(). WordPress allows to create custom walker class to do changes with these formatted result. In this tutorial, we are going to see about how to make changes in category list displayed by wp_list_categories(). We are creating a custom walker […]
This tutorial is added to Wordpress code section.

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 is added to Wordpress code section.

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 is added to jQuery code section.

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 is added to Wordpress code section.

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 is added to jQuery code section.

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 is added to PHP code section.

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 is added to CSS code section.

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 is added to PHP code section.

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 is added to Wordpress code section.

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 is added to Wordpress code section.

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 is added to PHP code section.

↑ Back to Top