From 20e45eea3923d4dc263fac3789f61b0a86e6900a Mon Sep 17 00:00:00 2001 From: yeswanth14-hu Date: Thu, 24 Oct 2024 13:53:44 +0530 Subject: [PATCH] Update connect.php --- connect.php | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/connect.php b/connect.php index 1857f8b..7730f4f 100644 --- a/connect.php +++ b/connect.php @@ -1,23 +1,20 @@ connect_error){ echo "$conn->connect_error"; die("Connection Failed : ". $conn->connect_error); } else { - $stmt = $conn->prepare("insert into registration(firstName, lastName, gender, email, password, number) values(?, ?, ?, ?, ?, ?)"); - $stmt->bind_param("sssssi", $firstName, $lastName, $gender, $email, $password, $number); + $stmt = $conn->prepare("insert into registration(username,email, password,) values(?, ?, ?,)"); + $stmt->bind_param("sss", $username,$email, $password,); $execval = $stmt->execute(); echo $execval; echo "Registration successfully..."; $stmt->close(); $conn->close(); } -?> \ No newline at end of file +?>