To logout users from all devices when the password is changed in PHP, here we will create a good and easy approach to create the script. Here are some major steps which we will follow, At the time of login we will store a random number associated with the user id into the DB and […]
Send Email in JavaScript Using SMTP with Example
To Send Email in JavaScript Using SMTP (Simple Mail Transfer Protocol), we will use JavaScript SMTP CDN and Gmail app password as credentials. Here are the given major things we will use to send an email in JavaScript using SMTP, SMTP JS CDN library Google App Password Here you can check how we can create a google […]
How to check if an array is empty, NULL, or undefined in jQuery?
To check if an array is empty, NULL, or undefined in jQuery and JavaScript, we use two major functions, jQuery.isEmptyObject(arrayVariable) length property To check, if an array is undefined we use typeof JS operator. And by using jQuery of JS length property we can check the length of the array, to check it is empty […]
Sum of all duplicate values in an array using JavaScript
Also Read: for-Each In JavaScript With Example Here we create a program to find Sum of all duplicate values in an array using JavaScript. In the above source code, first, we define an indexed array where we want to find duplicate values of an array. Now, we define two variables sum and result. Then we […]
How to Print Multiple Array Values in PHP?
To print multiple array values in PHP, first, we have to merge multiple arrays and store it to a variable. To merge two arrays we use array_merge() function. Here on this task we check two types of multiple arrays and merge those to print complete value. Example with indexed arrays. And with associative arrays. Example […]
Get Special Characters from String in jQuery
To Get Special Characters from String in jQuery we use the string indexOf function. Also Read: 7 Most Useful JavaScript Array Functions Here are the major steps which we used to get, Store possible special characters into a variable. Define a empty array to store characters to show. Use loop to check and get all […]
Convert Unix timestamp to DateTime jQuery And JS
To Convert Unix timestamp to DateTime using jQuery and JS, we use the JavaScript date object and other date functions to get the time and date with months. Here are 4 steps to convert timestamp to DateTime using jQuery and JS, Convert timestamp to milliseconds. Place the milisecond value as argument in the date object. […]
XAMPP, Apache – Error: Apache shutdown unexpectedly
Here we discuss the Error: Apache shutdown unexpectedly issues with XAMPP. In this complete article, we will know why the Apache and MySQL issue occurs and how we can solve them easily or without editing the configuration files. Also Read: Increase PHPMyAdmin Import Size Ubuntu and XAMPP Why this “apache shutdown unexpectedly” xampp occurs After […]
How to get data from the hidden fields in PHP?
To get data from the hidden fields in PHP, we use PHP global variable, $_POST $_REQUEST To create a hidden field, we create an HTML input field with type=”hidden” and to store data inside the input field we have to use value=”anyValue” attribute. In the above code, we are using name attribute which is used […]