Add files via upload

This commit is contained in:
adrireal 2021-05-11 13:14:28 +02:00 committed by GitHub
parent 85cd4a8e27
commit 4449f48e83
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -18,6 +18,15 @@
//Methods: //Methods:
// Delete user
public function deleteUser($user_id) {
$sql = sprintf( "DELETE FROM users WHERE id = '%s'", $user_id);
$resul = mysqli_query($this->mysqli, $sql) or die ('Error into query database');
return $resul;
}
//Encrypt password with SHA254. //Encrypt password with SHA254.
private function encryptPass($password){ private function encryptPass($password){
//$password = hash('sha256', $password); //$password = hash('sha256', $password);