diff --git a/addPengumuman.php b/addPengumuman.php index a652ed630237c0564f024990190d72e481473bdb..d71f5a00c7e836d04e43d2a750b997fc8b66fe73 100755 --- a/addPengumuman.php +++ b/addPengumuman.php @@ -92,7 +92,8 @@ if ($fileAddr == "null") { $stmt->bind_param("siss", $judul, $kegiatan_id, $konten_text, $fileAddr); $stmt->execute(); $stmt->close(); +$stmt = $conn->query("SELECT SCOPE_IDENTITY()"); $conn->close(); -\pmotraining\FirebaseNotif::sendNotif("Ada pengumuman baru", $judul, 1, 1); +// \pmotraining\FirebaseNotif::sendNotif("Ada pengumuman baru", $judul, 1, 1); echo 'Sukses, pengumuman ' . $judul . ' berhasil ditambahkan.';