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

Read HTML5 Data Attribute via jQuery

March 6, 2016
In HTML5, it has data-* attribute which is used to store custom data with an HTML element. This attributes used to keep more information on HTML elements. When we access these elements from javascript, the adequate information stored will make our work easy. We are going see an example to read HTML5 data-* attribute via […]
This tutorial is added to jQuery code section.

How to Create Custom Taxonomy in WordPress

March 3, 2016
Taxonomy is a feature to group content like posts, links in a structured way. For example, category and tag are the inbuilt taxonomies in WordPress to group posts. The category is a hierarchical taxonomy and the tag is an example of non-hierarchical taxonomy. WordPress allows us to create custom taxonomies. It can be either hierarchical […]
This tutorial is added to PHP code section.

Image Flip with jQuery CSS

March 1, 2016
In this tutorial, we are going to see how to flip anĀ image using jQuery and CSS. In a previous tutorial, we have seen various jQuery animation to rotate image. In this example, we are flipping images in a horizontal direction using 3D transform. We are using CSS transform property to flip images in X-axis. This […]
This tutorial is added to jQuery code section.

PHP Time Ago Function

March 1, 2016
This PHP tutorial is for converting given date into a time ago string like 2 hours age, 3 years ago. In a previous tutorial, we have seen date format conversion by using PHP inbuilt functions. In this example, we are having a custom function to change a date format into time ago string. View Demo […]
This tutorial is added to PHP code section.

AJAX Cart Edit in PHP Shopping Cart

February 29, 2016
This Shopping cart tutorial is providing cart edit feature by using jQuery AJAX. In a previous tutorial, we have seen simple shopping cart. This edit feature allows changing 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 a previous tutorial, we have seen jQuery image slider by changing tags sources at a periodic interval. We are using jQuery Backstretch plugin to run a background image slide for a web page. This slider plugin stretches images […]
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 how to search database records date between two given ranges. It will return the filtered results from the 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 creating custom walker class to do changes with these formatted result. In this tutorial, we are going to see how to make changes in category list displayed by wp_list_categories(). We are creating a custom walker and sending […]
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 accept a list of optional parameters to filter categories. These parameter lists can be an array or a query […]
This tutorial is added to Wordpress code section.

DropDown with Search using jQuery

January 12, 2016
Search is a useful feature for an HTML drop-down list. Especially it will increase user convenience to select items from the drop-down having a long list. In this tutorial, we are going to list country dropdown with a search option. In a previous tutorial, we have seen countries and its dependent dropdown list. In this […]
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 to 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 how to do simple color picker using jQuery. In a 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 follow the RESTful principles are RESTful services. In RESTful services, URIs are used to access the resources. Data and functions are called resources in the RESTful glossary. So eventually data and function are what we will access via services. In this RESTful web services […]
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.

↑ Back to Top