View difference between Paste ID: Nx5mSC4e and N9fx2T00
SHOW: | | - or go back to the newest paste.
1
$ip = $_SERVER['REMOTE_ADDR'];
2-
         $sql = $mysqli->query( "INSERT INTO user (`username`, `password` `last_ip` `first_ip`) VALUES ('".$username."','".password_hash($password, CRYPT_BLOWFISH)."','".$ip."','".$ip."')");
2+
3
$sql = $mysqli->query("INSERT INTO user (`username`, `password`, `last_ip`, `first_ip`) VALUES ('".$username."', '".password_hash($password, CRYPT_BLOWFISH)."', '".$ip."', '".$ip."')");