简体   繁体   中英

md5 hash throwing an error in PHP

md5 hash throwing an error in PHP

( ! ) Notice: Use of undefined constant md5 - assumed 'md5' in C:\\wamp\\www\\sva2\\php\\register.php on line 22 Call Stack # Time Memory Function Location 1 0.0115 381992 {main}( ) ..\\register.php:0

    <?php
require 'ChromePhp.php';
$dbhost = 'localhost';
 $dbuser = 'root'; // $dbuser = 'root'
 $dbpass = '';     // $dbpass = ''
 $conn = new mysqli($dbhost, $dbuser, $dbpass, 'ss');
// Check connection
 if ($conn->connect_error) {
    ChromePhp::log("Connection failed: " . $conn->connect_error);
} 

 $username = $_GET['username'];
 $password = $_GET['password'];
 $confirmpassword = $_GET['password_confirm'];
 ChromePhp::log($username);
 //ChromePhp::log($password);

 if($username != "")
 {
 $mdsh = $username.'';
 $mdhash = md5($mdsh);


   }

$conn->close();

?>

检查并确保chromephp include不会导致此问题。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM