Skip to content
Snippets Groups Projects
Commit 703280e3 authored by Arya Pradipta's avatar Arya Pradipta
Browse files

adding firebase

parent 4a993719
Branches
No related merge requests found
Pipeline #4271 failed with stages
in 3 minutes and 48 seconds
...@@ -92,7 +92,8 @@ if ($fileAddr == "null") { ...@@ -92,7 +92,8 @@ if ($fileAddr == "null") {
$stmt->bind_param("siss", $judul, $kegiatan_id, $konten_text, $fileAddr); $stmt->bind_param("siss", $judul, $kegiatan_id, $konten_text, $fileAddr);
$stmt->execute(); $stmt->execute();
$stmt->close(); $stmt->close();
$stmt = $conn->query("SELECT SCOPE_IDENTITY()");
$conn->close(); $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.'; echo 'Sukses, pengumuman ' . $judul . ' berhasil ditambahkan.';
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment