How to execute PHP code using command line ?
PHP Installation for Windows Users: Follow the steps to install PHP on the Windows operating system....
read more
How to pop an alert message box using PHP ?
An alert box is used in the website to display a warning message to the user that they have entered the wrong value other than what is required to fill in that position. An alert box can still be used for friendlier messages. The alert box gives only one button “OK” to select and proceed....
read more
How to Insert Form Data into Database using PHP ?
In this article, we are going to store data in database which is submitted through HTML form....
read more
How to call PHP function on the click of a Button ?
Given a document containing HTML and PHP code and the task is to call the PHP function after clicking on the button. There are various methods to solve this problem. Also, apart from doing this with the click of a button, a PHP function can be called using Ajax, JavaScript, and JQuery. But this article mainly focuses on the button oriented approach of calling the PHP Function....
read more
How to delete an array element based on key in PHP?
Given an array (One dimensional or multidimensional) and the task is to delete an array element based on key value....
read more
How to Upload Image into Database and Display it using PHP ?
Uploading the image/videos into the database and displaying it using PHP is the way of uploading the image into the database and fetching it from the database. Using the PHP code, the user uploads the image or videos they are safely getting entry into the database and the images should be saved into a particular location by fetching these images from the database.If any of the websites contain the functionality to upload images/videos with some detail, then by using this code we will upload the image into your database and whether you would like to ascertain what the person has got to be uploaded. And by this code the image which is uploaded that where save in your system where you are given the location....
read more
How to check whether an array is empty using PHP?
In this article, we are going to learn how can we check whether an array is empty using PHP. There are various methods and functions available in PHP to check whether the defined or given array is empty or not....
read more
How to float three div side by side using CSS?
In this article, we are going to learn how to float three divs side by side using CSS. Three or more different divs can be put side-by-side using CSS. Use the CSS property to set the height and width of the div and use the display property to place the div in a side-by-side format....
read more
Comparing two dates in PHP
Given two dates (date1 and date2) and the task is to compare the given dates. Comparing two dates in PHP is simple when both the dates are in the same format but the problem arises when both dates are in a different format....
read more
How to convert array to string in PHP ?
We have given an array and the task is to convert the array elements into string. In this article, we are using two methods to convert array to string....
read more
PHP | Converting string to Date and DateTime
Converting the string to Date and DateTime uses several functions/methods like strtotime(), getDate(). We will see what these functions do. strtotime() – This is basically a function which returns the number of seconds passed since Jan 1, 1970, just like a linux machine timestamp. It returns the number of seconds passed according to the parameter passed to the function. Syntax...
read more
How to make elements float to center?
The CSS float property is used to set or return the horizontal alignment of elements. But this property allows an element to float only right or left side of the parent body with the rest of the elements wrapped around it. There is no way to float the center in the CSS layout. So, we can center the elements by using position property....
read more