From 5c6d5234faced0b12312084c3dde20045959afa8 Mon Sep 17 00:00:00 2001 From: aryapradipta9 <aryapradipta9@gmail.com> Date: Wed, 25 Apr 2018 09:47:09 +0700 Subject: [PATCH] fixing quotes by temporary --- getAllQuotes.php | 8 ++++++-- sendNotif.php | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/getAllQuotes.php b/getAllQuotes.php index cea42ad..e19ca1f 100755 --- a/getAllQuotes.php +++ b/getAllQuotes.php @@ -16,9 +16,13 @@ require 'dbConnect.php'; // Fetch all data after managed +// $stmt = $conn->query( +// "SELECT * FROM `quote` WHERE `tanggal_mulai_penampilan` <= (NOW()-7) +// ORDER BY `tanggal_mulai_penampilan` ASC" +// ); $stmt = $conn->query( - "SELECT * FROM `quote` WHERE `tanggal_mulai_penampilan` <= (NOW()-7) - ORDER BY `tanggal_mulai_penampilan` ASC" + "SELECT `id`,`author`,`quote`, + MIN(`tanggal_mulai_penampilan`) as `tanggal_mulai_penampilan` FROM `quote` WHERE 1" ); $count = $stmt->num_rows; $res = array(); diff --git a/sendNotif.php b/sendNotif.php index 7493fb7..7c520d9 100755 --- a/sendNotif.php +++ b/sendNotif.php @@ -3,7 +3,7 @@ /** * PHP Version 7 * Mengirimkan notifikasi ke firebase. - * @category Berita + * @category Utilities * @package Komunitas-PMO * @author Putu Arya Pradipta <13515017@std.stei.itb.ac.id> * @license http://www.gnu.org/copyleft/lesser.html LGPL License 2.1 -- GitLab