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

Multiple File Upload using Fine Uploader

March 31, 2017
In this tutorial, we are going to see how to upload multiple files using PHP. I am using “Fine Uploader” a JavaScript, open source and free library. Also, fine-uploader has no dependencies. It is simple and easy to understand. It shows a progress bar during upload and preview for the uploaded files in a gallery form.  Using this […]
This tutorial is added to PHP code section.

REST API Search Implementation in PHP

March 30, 2017
In this tutorial, we are going to implement search using PHP REST API. I have created a RESTful web service in PHP to do the search on the database table data based on the keyword passed in the Querystring.  In a previous tutorial, we have seen how to create a RESTful web service in PHP. In this example, I […]
This tutorial is added to PHP code section.

Multi-language Support to Website using PHP

March 29, 2017
Creating a Multi-language (multilingual) web page is easy to implement. Multi-language websites are used to increase the volume of users supported for a website. Multi-language support can be done in various ways. We can have duplicate pages with the same content in required languages. We can add language configuration (localization) to change the text in […]
This tutorial is added to PHP code section.

Top 10 Skills to be a Successful Freelancer

March 25, 2017
The world of PHP freelancing is getting crunched day by day. I have been a PHP freelancer for long. Offlate I am seeing a strong emergence and influx of PHP freelancers. Getting ourselves on top of the game will be a stiff challenge. With an empire on hand to be ruled you’ve got many hats […]
This tutorial is added to PHP code section.

PHP Login with OTP Authentication

March 21, 2017
Login with an OTP code is a secure method for the user authentication process. In this method, a one-time password is generated dynamically and sent to the user who attempts login. OTP can be sent to the user’s email or his mobile phone. When the user enters the OTP code then the application will authenticate the […]
This tutorial is added to PHP code section.

AJAX Pagination with PHP

March 11, 2017
In this tutorial, we are going to see an example PHP code to add pagination to a list of records retrieved from database. I am using AJAX to fetch records for each page from database with jQuery. In a previous tutorial, we have seen already about AJAX pagination. In this example, I have added an option to […]
This tutorial is added to PHP code section.

Inline Insert using jQuery AJAX

March 8, 2017
In this tutorial, we are going to see how to do inline insert the HTML5 table data to a database table using jQuery and AJAX. HTML5 allows editing table cells by setting contentEditable attribute as true. After adding data to the table cells, we can pass the cell data to PHP via jQuery AJAX. In the PHP page, we create insert […]
This tutorial is added to jQuery code section.

How to Create WordPress Widget

February 28, 2017
Widgets are used to add content to a WordPress page programmatically without disturbing theme templates. The sidebar is the default area to add widget content. Also, we can register our own widget area and add widgets to it. WordPress contains some default widgets Search, Category, Tags and more. In WordPress admin, we can see Widgets […]
This tutorial is added to Wordpress code section.

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.

↑ Back to Top