From 5d8f633fccbfe84c2d87a2376d97b4c30a5a1ac6 Mon Sep 17 00:00:00 2001 From: CodeServer Date: Tue, 3 Aug 2021 14:12:33 +0100 Subject: [PATCH] userInfo submition now works --- php/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/php/functions.php b/php/functions.php index f33f6da..7bffcfe 100644 --- a/php/functions.php +++ b/php/functions.php @@ -45,7 +45,7 @@ } function qeury_updateUserInfo($conn, $uid, $email, $phone, $address, $unit, $city, $country, $zip) { - $sql = "UPDATE userInfo SET C_EMAIL = ' ? ',C_PHONE = ' ? ',C_ADDRESS = ' ? ',C_UNIT = ' ? ',C_CITY = ' ? ',C_COUNTRY = ' ? ',C_ZIP = ' ? ' WHERE C_ID = ' ? '"; + $sql = "UPDATE userInfo SET C_EMAIL = ? ,C_PHONE = ? ,C_ADDRESS = ? ,C_UNIT = ? ,C_CITY = ? ,C_COUNTRY = ? ,C_ZIP = ? WHERE C_ID = ? "; $stmt = mysqli_stmt_init($conn); if (!mysqli_stmt_prepare($stmt, $sql)) { return null;