diff --git a/addKmtPengumuman.php b/addKmtPengumuman.php index 791c4e1e89f0e00cbbd4d3514ed4015dec257a54..33ccd982f64914ade75f05cefb45355daff45fff 100755 --- a/addKmtPengumuman.php +++ b/addKmtPengumuman.php @@ -28,4 +28,3 @@ if ($status) { } else { echo "Gagal, komentar tidak berhasil ditambahkan."; } - diff --git a/getAllTanggalHariBesarTigaTahun.php b/getAllTanggalHariBesarTigaTahun.php index bfed74250b04e4cb31828edfc2c779e73643020f..00ae316ad0af5afdb0a8ff16331cef74f83f548d 100644 --- a/getAllTanggalHariBesarTigaTahun.php +++ b/getAllTanggalHariBesarTigaTahun.php @@ -15,8 +15,10 @@ require 'dbConnect.php'; $requestedMonth = $_GET["month"]; $requestedYear = $_GET["year"]; $stmt = $conn->query( - "SELECT `tgl` FROM `hari_besar` - WHERE ((YEAR(`tgl`) >= ".$requestedYear-1.") AND (YEAR(`tgl`)<=".$requestedYear+1."))" + "SELECT `tgl` FROM `hari_besar` WHERE ((YEAR(`tgl`) >= " + .$requestedYear - 1 . + ") AND (YEAR(`tgl`)<=" + . $requestedYear+1 . "))" ); $count = $stmt->num_rows; $res = array(); @@ -26,4 +28,4 @@ while ($row = $stmt->fetch_assoc()) { } echo json_encode($res); -$conn->close(); \ No newline at end of file +$conn->close(); diff --git a/getAllTanggalKegiatanTigaTahun.php b/getAllTanggalKegiatanTigaTahun.php index 77ed83d06d6c2fe31d9fae7d3afa6862552e58d0..e51bd186072c60ffd7b098d3cd60dd8880d36c84 100644 --- a/getAllTanggalKegiatanTigaTahun.php +++ b/getAllTanggalKegiatanTigaTahun.php @@ -15,7 +15,9 @@ require 'dbConnect.php'; $requestedYear = $_GET['year']; $stmt = $conn->query( "SELECT `tanggal_kegiatan` FROM `kegiatan` - WHERE ((YEAR(`tanggal_kegiatan`)>=".$requestedYear-1.") AND (YEAR(`tanggal_kegiatan`)<=".$requestedYear+1."))" + WHERE ((YEAR(`tanggal_kegiatan`)>=" . + $requestedYear-1 . + ") AND (YEAR(`tanggal_kegiatan`)<=".$requestedYear+1 . "))" ); $count = $stmt->num_rows; $res = array(); @@ -28,4 +30,4 @@ while ($row = $stmt->fetch_assoc()) { echo json_encode($res); -$conn->close(); \ No newline at end of file +$conn->close();