Useful Numeric Functions in PHP
There are many functions related to numbers.like Useful Numeric Functions in PHP ,Mathematical Functions in PHP Here are a few of the most common and useful: abs() : Returns the absolute value of the...
There are many functions related to numbers.like Useful Numeric Functions in PHP ,Mathematical Functions in PHP Here are a few of the most common and useful: abs() : Returns the absolute value of the...
MySQL Table Structure for this tutorial <?php include(‘dbconfig.php’); error_reporting(0); if (isset($_POST[“submit”])) { if (count($_POST[“ids”]) > 0 ) { // Imploding checkbox ids $all = implode(“,”, $_POST[“ids”]); $sql =mysqli_query($con,”DELETE FROM tblusers WHERE id in ($all)”);...
Remember me function is used to save the username and password in login form entered by the user. In this tutorial we are using COOKIES for saving preserving username and user password in the...
In last tutorial we learned password hashing in php. In this tutorial we will learn How to Salt & Hash a Password with Sha 256 in PHP. Syntax for Sha256 encryption $password=$_POST[‘password’]; $hasedpassword=hash(‘sha256’,$password); Signup form...
Functions for hashing password password_hash() password_verify() password_hash() – Syntax: string password_hash(string $password , integer $algo [, array $options ] ) string $password – Password provide by user integer $algo – Password algorithm constant(PASSWORD_DEFAULT and...
Hello, friends in this tutorial we will learn user registration and login using PHP stored procedure. File structure for this tutorial config.php index.php check_availability.php login.php welcome.php logout.php Structure of SQL table tblregistration CREATE TABLE...
A cross-site request forgery (CSRF) vulnerability occurs when: A web application uses session cookies. he application acts on an HTTP request without verifying that the request was made with the user’s consent. If the...
In this tutorial I will explain how to maintain password history using php and mysql. This means a user who must change their password can’t reuse the password they just had. This tutorial explains...