there are 6 columns in my database table. But, I only want to update 3 columns. I am trying this code.
$stmt = $this->conn->prepare("UPDATE users SET name=?, class=?, subject=? WHERE id=?");
$name = $data['name'];
$class = $data['class'];
$subject = $data['subject'];
// Binding the params to the stmt object
$stmt->bind_param("user", $name, $class, $subject);
// Execute the prepared statement
$response = $stmt->execute();
$stmt->close();
return $response;
which is not working. Record is not updating. keeps showing empty page. No response is coming after execution.