diff --git a/getAllQuotes.php b/getAllQuotes.php index cea42ad341a785dcf4d3f9aef1ebc1c22dd1568f..e19ca1f8bcb2c4ee6fdeae36177fe35b6f2c885e 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 7493fb7c43e77d2c655160cceac74e938d4a8eb1..7c520d9355432dce5942a4211d88bb52b108105d 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