How to insert JSON data into MySQL database using 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 into the database. Please follow the below simple PHP script which will guide you about […]

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

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, PHP, and MySQL. Let’s think a situation where the user has to submit a form […]

How to get current page url using 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 is an array contains various information such as, headers, document path, script location, request method […]

How to generate QR code using PHP and Ajax

How to generate QR code using PHP and Ajax

  •  
  •  
  •  
  •  
  •  
  •  

QR code is a two-dimensional barcode, also known as the Quick Response code. It can contain URL, simple text, contact number, email address and so on. In this tutorial, I will guide you through a step by step way about how to generate QR code using PHP and Ajax. The following example of QR code generator is […]

How to generate barcode using PHP

How to generate barcode using PHP

  •  
  •  
  •  
  •  
  •  
  •  

Nowadays, the barcode is a common thing for any product tagged with its body. Barcode is used to store various kind of data such as product code, price, manufacturer details and so on. So, in this tutorial, I will show you how to generate barcode using PHP. The following example of PHP barcode generator is very easy […]

Like dislike rating system using jQuery, Ajax, PHP and MySQL

Like dislike rating system using jQuery, Ajax, PHP and MySQL

  •  
  •  
  •  
  •  
  •  
  •  

Like dislike rating system is quite useful for any website. Through this admin as well as webmasters can understand the users likes and dislikes. In this tutorial, I made a simple like dislike rating system using jQuery, Ajax, PHP, and MySQL. No page refreshing is required because I used jQuery and Ajax. Also, we store the data […]

Load data dynamically on page scrolling using jQuery, Ajax, PHP, and MySQL

Load data dynamically on page scrolling using jQuery, Ajax, PHP, and MySQL

  •  
  •  
  •  
  •  
  •  
  •  

When we have too many records or contents to display on the web page, we used pagination. Pagination simply divides all the records among pages, such as page 1, page 2 and so on. But, nowadays we replaced this pagination mechanism with a more friendly feature that loads data dynamically from the database on page scrolling. […]

Bootstrap pagination in PHP and MySQL

Bootstrap pagination in PHP and MySQL

  •  
  •  
  •  
  •  
  •  
  •  

It is possible to have thousands of records on your table. But displaying all the records on a single page is not a good idea. So you can split or divide these records into multiple pages and you have to provide each page link at the bottom of the contents. We will achieve this by […]

How to reduce or compress image size while uploading using PHP

How to reduce or compress image size while uploading using PHP

  •  
  •  
  •  
  •  
  •  
  •  

It is very common to upload images to the server or website by the users and admins. Users mostly upload their images for setting their profile picture or to submit documents and so on. But most of the time images are uploaded by the users are not optimized for the web, thus taking much more […]