This is my php code
$update = [
'colour' => $colour
];
$sql = "UPDATE colours SET colour=:colour WHERE colour=:colour";
$stmt= $db->prepare($sql);
$stmt->execute($update);
all my queries work but when I update a table with value where the value is the same it does not update. Should be an easy one for someone familiar with this problem. All help appreciated. thank you