This is my code
if ($_SERVER['REQUEST_METHOD'] === 'POST')
{
$sql = 'UPDATE checklist_programs
SET PROGRAM_ID='.$_POST['PROGRAM_ID'].'
WHERE CHECKLIST_ID = ?';
$query = mysqli_query($connection, $sql);
if($query)
{
echo "Record update successfully";
header('Location: OverViewCheckList.php');
}
I got an error like this
Notice: Array to string conversion in C:\xampp\htdocs\checklist\updateChecklist.php