CustomerRewardsRESTAPI/Model/PurchaseModel.php

21 lines
558 B
PHP
Raw Normal View History

2024-04-15 11:38:59 -05:00
<?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}");
}
}