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

How to Create Shortcode in WordPress

February 21, 2017
In WordPress, Shortcode is a feature to insert content into a post or a page programmatically. Shortcode will work if it is specified inside a page or post content. Otherwise, we have to add the do_shortcode hook to use a shortcode outside the content. In a previous WordPress tutorial, I have used shortcode feature to insert advertisement banner […]
This tutorial is added to Wordpress code section.

PHP MySQL REST API for Android

February 8, 2017
PHP REST API backed up with a MySQL database is a very common schematic of an Enterprise mobile application. When the scenario requires data to be stored in a centralize manner, then this architecture should be used. Otherwise, the local database in the mobile can be used for storage and retrieval of information.  In this tutorial, we […]
This tutorial is added to PHP code section.

PHP Search and Pagination using PDO

February 3, 2017
Search is an important functionality of any information-centric application. Pagination is an integral part of the display when voluminous records are displayed. In this tutorial, we are going implement search and pagination for a list page using PDO. In a previous tutorial, we have already learned how to do database CRUD using PDO. In this […]
This tutorial is added to PHP code section.

Highcharts – Compare Data using Column Chart

February 1, 2017
Highcharts provides various type of beautiful chart components. It is useful to present data in an interactive graphical representation. There are the pie chart, bar chart, column chart, line chart and lot more different chart formats. It is a client-side chart component based on Javascript and it can be easily implemented in our web projects.  […]
This tutorial is added to jQuery code section.

PHP PDO CRUD

December 30, 2016
In this tutorial we are creating an example to do database operations Create, Read, Update and Delete (CRUD) in PHP using PDO connection. In a previous tutorial, we have already learned about how to do database CRUD using MySQLi In this example, we have taken a posts table to do CRUD via PDO. The SQL script […]
This tutorial is added to PHP code section.

Adding Custom Field to WordPress Post

December 5, 2016
In WordPress there some default fields in add new post form. These are the title, HTML description, category, tags. If we want to add more information to our post, WordPress provides an option to enable custom fields. This additional information added with the custom fields are called as post meta. This metadata is stored in […]
This tutorial is added to Wordpress code section.

Facebook Like Header Notification in PHP

November 22, 2016
In Facebook like social networking websites, we can see notification alert in the page header. In this tutorial, we are going to add such header notification to notify the user about latest data. This will be helpful to keep the user updated by notifying what is new. In this example, we have a notification icon […]
This tutorial is added to PHP code section.

jQuery Sliding Menu

September 26, 2016
Usually, menu bar occupies some spaces in a web page. By using sliding menu we can have more space to display the main content. In previous posts, we have seen about jQuery menu expand and collapse with the sliding effect. We call jQuery on the click event of the menu expand/collapse icon and controls the […]
This tutorial is added to jQuery code section.

jQuery AJAX Inline CRUD with PHP

September 5, 2016
Inline CRUD is for performing Create, Read, Update and Delete operations within a grid view. In a previous post, we have seen an example of jQuery inline editing. Inline CRUD will enrich the page by adding a new row and changing the existing data dynamically via jQuery AJAX. For adding new record we create new […]
This tutorial is added to jQuery code section.

Add Delete Image via jQuery AJAX

August 4, 2016
Images can be added or deleted using jQuery and PHP script via AJAX. In a previous tutorial, we have seen examples like PHP AJAX image upload and multiple image upload. But in those examples, we didn’t have a delete option. In image add, we call PHP file upload script to upload the chosen image into […]
This tutorial is added to jQuery code section.

Display Text in Vertical Direction using CSS

July 4, 2016
In this tutorial, we are going to see how to display a text in the vertical orientation. We use CSS for displaying a floating text in the vertical direction. In this example, we are having a background image with a transparent vertical tagline to show a text. The floating vertical text will provide a rich […]
This tutorial is added to CSS code section.

Formatting Date With jQuery Date Picker

June 26, 2016
Using jQuery date picker we can format a selected date by using dateFormat option. In a previous post, we have seen how to use jQuery datepicker in a form to select a value for a date field. It popup a calendar widget to select a date. In this tutorial, we are going to see how […]
This tutorial is added to jQuery code section.

Dependent Auto Suggest with jQuery

June 14, 2016
Auto-suggest feature for a form field will reduce user’s effort while entering input data. In this post, we are going to see how to do auto suggest for a dropdown field depends upon the result of another dropdown. In a previous post, we have seen how to create dependent dropdown and dropdown with auto suggest, separately. […]
This tutorial is added to jQuery code section.

How to Become a Full Time Freelance PHP Developer and Consultant

June 3, 2016
When someone, simply affluent, could be smart enough in hiring you for the skills and imagination that he probably doesn’t possess, what stops you from being smart for your own good?  Perhaps you would have been waiting for a push. If yes, this is it. Having stuck in an insipid workplace with passion and creativity […]
This tutorial is added to PHP code section.

Responsive Menu with jQuery and CSS

June 2, 2016
Responsive design for our web page is used to make the page to be flexible for various screen sizes. Previously, we have seen about how to create responsive web page using CSS media queries. In this example, we have a header menu component. We are going to make it responsive for two different screen sizes. […]
This tutorial is added to jQuery code section.

↑ Back to Top