I am trying to use MySQLi prepared statement to insert values in ProfileImg column and I want to use WHERE clause with it, how should I implement this?
Here is my current code:
[TRUNCATED]
$userid = $_POST['userid'];
$stmt = $conn->prepare("INSERT INTO Users (ProfileImg) VALUES (?) WHERE ID=?");
$stmt->bind_param("si", $file, $userid);
// set parameters and execute
$stmt->execute();
echo "succeeded";
$stmt->close();
$conn->close();
?>