Versuchen Sie es mit Insert into select from
INSERT INTO test ( `nama`, `alamat`, `jenis_kelamin`, `shift`)
select '$nama','$alamat','$jenis_kelamin','$shift' from shift where shift_name = '$shift'
Versuchen Sie es mit Insert into select from
INSERT INTO test ( `nama`, `alamat`, `jenis_kelamin`, `shift`)
select '$nama','$alamat','$jenis_kelamin','$shift' from shift where shift_name = '$shift'