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