!is_null($entries) && $entries !== '') as $e) { // build some type of Prepared Statement to protect from SQL Injection $input = "INSERT INTO tb_tindakan (id_pasien,tindakan,masalah,perawat_ppa,ruang) VALUES ('$id_pasien','$e','selesai','$perawat_ppa','$ruang')"; $query_input = mysqli_query($open, $input); if ($query_input) { //Jika Sukses ?>