Upload multiple images with live preview using jQuery, Ajax, and PHP
Posted in Ajax HTML JavaScript jQuery PHP

Upload multiple images with live preview using jQuery, Ajax, and PHP

Uploading files to a server is a common functionality of any web application. All of us know that HTML 5 allows us to upload multiple images using a single input. But how it actually works maybe you do not know. Also,…

How to backup or export MySQL database using PHP
Posted in MySQL PHP

How to backup or export MySQL database using PHP

Import and export of data to and from any database is a common task of any website development. By exporting databases we secured our application from any kind of data loss. Sometimes, we need to develop our own custom PHP code to…

How to generate PDF file using PHP and MPDF
Posted in PHP

How to generate PDF file using PHP and MPDF library

There are several situations when a single PDF (Portable Document Format) is the most perfect solution for any digital document. For example, generate an invoice or generate an ebook in PDF files. Using PHP you can create dynamic PDF files…

How to get the current page name using PHP
Posted in PHP

How to get the current page name using PHP

Hi friends, sometimes we are facing such a situation where we have to get the current page name from the URL. Then based on the current page name we performed specific tasks for that page only. So, in this tutorial,…

How to download youtube videos using PHP script
Posted in PHP

How to download youtube videos using PHP script

Hi friends, you all know that Youtube is the most popular video sharing website where you can view, upload and share the videos online, but you can not download the videos for offline uses. However, if you want to see…

Create image CAPTCHA using PHP and validate using JavaScript
Posted in JavaScript PHP

Create image CAPTCHA using PHP and validate using JavaScript

Create image CAPTCHA using PHP and validate using JavaScript. We all encountered such a situation when we have to enter a captcha in the form. Captcha is used to prevent spam injection on the website through your form.  So, if you…

How to get data from database in JSON format using Ajax and PHP
Posted in Ajax JSON PHP

How to get data from database in JSON format using Ajax and PHP

A very common use of JSON is to read data from a web server and then display these data into a web page. JSON is text, so when we want to exchange text as data between a browser and web…

How to insert JSON data into MySQL database using PHP
Posted in JSON PHP

How to insert JSON data into MySQL database using PHP

In this tutorial, I will show you how to insert JSON data into MySQL database using PHP. In JSON file we can store huge amount of data in an array format. So that, sometimes you need to store these JSON data…

Populate multiple dropdown lists using Ajax, jQuery, PHP and MySQL
Posted in Ajax jQuery MySQL PHP

Populate multiple dropdown lists using Ajax, jQuery, PHP and MySQL

Some readers often asking me how to generate or populate more than one dropdown list or multiple select boxes using Ajax. So, In this tutorial, I will show you how to generate or populate multiple dropdown lists using Ajax, jQuery,…

How to get current page url using php
Posted in PHP

How to get current page URL using PHP

In this tutorial, I will show you how to get current page URL using PHP. We will use $_SERVER variable to get the current page URL. $_SERVER is a super global variable, which is always available in all scopes. It…