Add files via upload
This commit is contained in:
parent
85cd4a8e27
commit
4449f48e83
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user