Update 03.php

This commit is contained in:
Viyan Mokhammad
2022-05-09 13:41:09 +03:00
committed by GitHub
parent b205ecb5e9
commit 028f41b4d8
+1 -1
View File
@@ -37,7 +37,7 @@
function add_user($pdo, $fn, $sn, $un, $pw)
{
$stmt = $pdo->prepare('INSERT INTO users VALUES(?,?,?,?)');
$stmt = $pdo->prepare('INSERT INTO users(forename,surname,username,password) VALUES(?,?,?,?)');
$stmt->bindParam(1, $fn, PDO::PARAM_STR, 32);
$stmt->bindParam(2, $sn, PDO::PARAM_STR, 32);