mirror of
https://github.com/sctn4elk/CustomerRewardsRESTAPI.git
synced 2025-01-09 05:04:29 -06:00
21 lines
558 B
PHP
21 lines
558 B
PHP
<?php
|
|
|
|
/*
|
|
* Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
|
|
* Click nbfs://nbhost/SystemFileSystem/Templates/Scripting/PHPClass.php to edit this template
|
|
*/
|
|
|
|
/**
|
|
* Description of PurchaseModel
|
|
*
|
|
* @author SCTN4
|
|
*/
|
|
require_once PROJECT_ROOT_PATH . "/Model/Database.php";
|
|
|
|
class PurchaseModel extends Database{
|
|
public function getPurchases($date, $limit)
|
|
{
|
|
return $this->select("SELECT * FROM purchases WHERE purchase_date = '{$date}' ORDER BY purchase_id ASC LIMIT {$limit}");
|
|
}
|
|
}
|