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

Insert XML Data to MySql Table

January 19, 2018
Programmatically importing XML data into a MySQL database will be handy in many a situations. In this tutorial, we are going to learn how to insert data from XML file to the database using PHP. The XML nodes are considered as the columns of the database table and so the data of each node are the […]
This tutorial is added to PHP code section.

Responsive Image Slideshow using jQuery

January 17, 2018
Image slideshow is the best way of presenting photos that we want to showcase. In this tutorial, I created the image slideshow which is responsive to the various view port by scaling up / down based on the screen size. I used ResponsiveSlides.js for creating responsive image slideshow. This is a jQuery plugin which makes our […]
This tutorial is added to jQuery code section.

jQuery Credit Card Validator

January 10, 2018
In this tutorial, we are going to see, how to do credit card validation using jQuery. When the user submits his card details, then the jQuery code will be called to validate the data submitted by the user. We have already seen several of examples for validating user input submitted via the form.  In this example, […]
This tutorial is added to jQuery code section.

PHP Contact Form with Google reCAPTCHA

January 9, 2018
Contact form with captcha code validation may be useful to validate a human user against bots. In a previous tutorial, we have seen how to add captcha code in a form using PHP. In this tutorial, we are going to integrate the Google reCAPTCHA in PHP contact form. Using this Google reCAPTCHA code, we can […]
This tutorial is added to PHP code section.

Responsive Contact Form with PHP

January 8, 2018
The responsive contact form is designed to fit various viewport in different width. I used CSS media queries to design this responsive contact form. In a previous tutorial, we have seen how to do the responsive design with CSS media queries. In this example, the responsive contact form has the Name, Email, Phone and the Message fields. […]
This tutorial is added to PHP code section.

Slide-In Contact Form using jQuery

January 5, 2018
In this tutorial, let us see how to create a Slide-In contact form using jQuery. In a previous tutorial, we have seen floating contact form while scrolling the web page vertically. In this example, I have shown a contact button on top of the page content. On the click event of this button, I toggled the contact […]
This tutorial is added to jQuery code section.

How to Code Tic Tac Toe Game in jQuery

January 4, 2018
In this article, we are going to learn to code the Tic Tac Toe game using jQuery. I will present you a code and it will show a single player Tic Tac Toe game panel to the user. In this game, the user will play with the computer. It is designed with the simple logic to […]
This tutorial is added to jQuery code section.

Shopping Cart Item Quantity Increment Decrement with AJAX

January 3, 2018
In this tutorial, we are going to add increment decrement buttons to edit the shopping cart item quantity. These buttons are added to the quantity input of each cart item and to change the cart item quantity before checkout. This is done using AJAX to give a seamless user experience. On clicking the buttons, an AJAX […]
This tutorial is added to PHP code section.

PHP Image Upload Using DropzoneJs

January 2, 2018
In this article, I will walk you through to implement image upload using DropzoneJS. It provides a nice and flexible interface it to the user. It allows the user to upload files by using drag and drop. Also, it allows the users to explore the files and folders for choosing files to be uploaded via Dropzone. […]
This tutorial is added to PHP code section.

Loading Dynamic Content on a Bootstrap Modal using jQuery

December 28, 2017
Modal window can be shown in various ways by using jQuery, Bootstrap and others. In this tutorial, we are going to show the Bootstrap modal with dynamically loaded content. The content is stored in a Database table which is retrieved and loaded dynamically into the modal body. In a previous tutorial, we have seen how […]
This tutorial is added to jQuery code section.

Adding Custom Markers on Map using Google Maps Javascript API

December 27, 2017
Adding custom marker on the map layer will be useful to show custom information with iconic representation as per the user interest. For example,  if the user wants to mark census data then the custom markers can be used instead of the default map markers to show the variations in the population strength. In this […]
This tutorial is added to PHP code section.

Send Email with Multiple Attachments using PHP

December 19, 2017
In this tutorial, we are going to learn about sending an email with multiple attachments. We will be using the PHPMailer. The attachment files are chosen and attached to the email via an HTML form. I have used jQuery AJAX to call the mail script by posting email data with the attachments. If you are looking for a […]
This tutorial is added to PHP code section.

Comments System using PHP and Ajax

December 18, 2017
In this tutorial, we are going to see how to create an AJAX based simple comment system using PHP. This comments system includes features to add reply for any comment added by the user. I used jQuery AJAX to add the comment/reply to the database and show them to the users. As it uses the  AJAX, […]
This tutorial is added to PHP code section.

Extract Content using PHP and Preview like Facebook

December 15, 2017
While sharing URLs, if the client automatically extracts title and image to post it as preview, then that would be nice. In many social media websites like Facebook and LinkedIn we can see that feature. They extract title and meta information on sharing links. In this tutorial, we are going to extract the page title, […]
This tutorial is added to PHP code section.

Skills Every PHP Freelancer Must Have

December 14, 2017
Before diving in, it is necessary that you check your equipments. An unequipped jump could simply agonize you at any point. Here is a technically drafted pattern of the skill set you will require to become a successful PHP freelancer. This article is part of a series where I write on excelling as a freelancer […]
This tutorial is added to PHP code section.

↑ Back to Top