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

PHP Login Script with Remember Me

March 23, 2016
In a login script, remember me feature is used to preserve the login name and password entered by the user. And it can be populated in the login form at the time of login. It minimizes the user effort by preventing to enter login details for each time. Some days before, we have seen PHP […]
This tutorial is added to PHP code section.

Switch CSS Based on Window Size using jQuery

March 17, 2016
Here we are going to see an example to switch CSS file dynamically based on the window size. In this example code, we are having two CSS files. One is for the web and the other is for the mobile viewport. We are having a jQuery function to switch CSS based on window size. This […]
This tutorial is added to jQuery code section.

Equal Height Columns with jQuery

March 16, 2016
In a multi-column template, the columns height is based on the content length. If the content lengths are varied then the columns will not be even and will not have a good look and feel. We can do this dynamically to equate the column heights. We have an example of a two-column template. These two […]
This tutorial is added to jQuery code section.

Prevent Form Double Submit using jQuery

March 9, 2016
In this tutorial, we will see how to avoid duplicate submit using jQuery. While submitting a form via an AJAX function, the page will not refresh. So, the user interface will not show any progress about the server side execution taking place. It will lead duplicate form to submit. To overcome this problem, we are […]
This tutorial is added to jQuery code section.

Restrict Typing Invalid Data in Form Field using jQuery

March 9, 2016
By restricting users from typing invalid data we can minimize validation errors in an earlier stage. Let us see an example to do this using jQuery. In this example, we are having two fields name and phone in our HTML form. In the name field, we can enter only alphabets and in the phone, only […]
This tutorial is added to jQuery code section.

Enable Disable Submit Button Based on Validation

March 9, 2016
Now we are going to see about how to enable or disable form submit button based on the form validation result. In a¬†previous example, we have seen form validation using PHP on clicking submit button. We have an example with an HTML form with disabled submit button. And then, we are enabling it by validating […]
This tutorial is added to jQuery code section.

jQuery Ajax Column Sort

March 9, 2016
Sorting MySQL column via an AJAX call will prevent us from sending the column name and column order in URL. So, it makes page URL simple. In the last article, we have seen about how to sort MySQL column using PHP with a page refresh. HTML Header with AJAX Call This HTML code contains database […]
This tutorial is added to jQuery code section.

Sorting MySQL Column using PHP

March 9, 2016
In PHP we can sort database results based on a column field using MySQL order by clause. Previously, we have seen about how to change the MySQL row order using jQuery. Now, we are going to see an example to sort UI results by clicking on the column name in the header. We have a […]
This tutorial is added to PHP code section.

jQuery News Ticker

March 7, 2016
jQuery News Ticker is used to marquee list of text one by one. Previously I launched MangoTicker a responsive news ticker plugin using Javascript. Now we are going to see a simple news ticker example using jQuery. In this example, we are going to achieve it using few lines of code. And, we are not […]
This tutorial is added to jQuery code section.

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.

↑ Back to Top