PHP notification alert when a new record is inserted using AJAX

Hi friends, in this tutorial we will learn how to send a PHP notification alert when a new record is inserted using ajax and jquery. This is almost similar to Facebook-like notifications. As we all know that the notification is a very essential part of any type of web-based application or any dynamic website. In […]

How to Get Only Date from Timestamp in PHP

In this tutorial, we will learn how to get only date from timestamp in PHP. Timestamp or date-time object is very essential in creating dynamic web applications. It helps us to know the exact time and store the time in our MySQL database while inserting the data in the database or updating the data in […]

How to Get a Date One Month Later in PHP

There are two ways to get a date one month later in PHP By using the date function By using the DateTime::modify Illustration of the example using the date() function to get a date one month later in PHP We will use the date() function to get the date in a specific format. We will […]

Display MySQL data in a modal on button click using ajax jquery PHP

In this tutorial, we will learn how to display MySQL data in a bootstrap modal on button click using ajax jQuery PHP. It seems very unprofessional while redirecting to another web page just to view some information. To simplify this problem, we will use a bootstrap modal which looks very user-friendly. After clicking the button, […]

How to export MySQL table data into excel using jQuery

Hi friends, in this tutorial we will learn how to export MySQL table data into excel using jQuery plugin. On the other hand, it can also be done with the help of PHP script. We will discuss it in the upcoming tutorial. But for now, in order to export table data successfully, we have to […]

Create multi-step form submission in PHP using jQuery

Hi Friends, In this tutorial, we will learn how to create multi-step form submission in PHP using jQuery. It is very simple and in order to do this, please follow the below steps one by one. We have to create a table in our database. I have a table name “stepformtbl” in my database. DDL […]

PHP difference between two dates in years, months and days

To calculate the difference between two dates in years, months and days in PHP, we have to use three functions strtotime() function floor() function() abs() function Read Here, strtotime, floor and abs functions in PHP Let us consider two dates and store in variables.$date1 = ‘2016-06-01’;$date2 = ‘2020-08-08’; Now, the difference between these two dates […]

strtotime,floor,abs,ceil functions in PHP

strtotime():- This function converts and English text DateTime into a unique timestamp but we have to wrap the result using this date format date(‘Y-m-d’) to avoid the errors. For example The output is 2020-01-01 floor():- This function returns a number down to its nearest integer. For example The output will be like this—- Ceil():- This […]

Insert Multiple Rows Using Same/Single Id in PHP

In this tutorial, we will learn how to insert multiple rows using same id in php. For example, we have some fruit items like orange, mango, bannana etc. Now, we will consider the fruit as item category and fruit related items as fruit subcategory. We will insert all the subcategory items using the parent category […]

Theme of 96 THEME.