$selected_value = 2;
echo Select2::widget([
'name' => 'my-select2',
'data' => [1 => 'One', 2 => 'Two'],
'options' => [
'placeholder' => 'Select a number ...',
'options' => [
$selected_value => ['disabled' => true],
]
],
]);
CREATE TRIGGER Emp_upd
AFTER update ON Employee
FOR EACH ROW
INSERT INTO History values('Employee', 'Update', OLD.Emp_ID, OLD.Person_ID);