Update
This commit is contained in:
parent
f208ac7782
commit
f7a3407197
@ -49,9 +49,7 @@ $check->close();
|
||||
$hashedPassword = password_hash($password, PASSWORD_DEFAULT);
|
||||
$created_at = date("Y-m-d H:i:s");
|
||||
|
||||
$stmt = $conn->prepare(
|
||||
"INSERT INTO users (username, password, created_at) VALUES (?, ?, ?)"
|
||||
);
|
||||
$stmt = $conn->prepare("INSERT INTO users (username, password, created_at) VALUES (?, ?, ?)");
|
||||
$stmt->bind_param("sss", $username, $hashedPassword, $created_at);
|
||||
|
||||
if ($stmt->execute()) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user