payment.php 356 Bytes Edit Raw Blame History 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 <?php namespace models; class payment extends \db { public function getPaymentByCustomer($customer_id) { return $this->get(' select * from public.payment where "customer_id" = :customer_id ORDER by id DESC ', [ 'customer_id' => $customer_id ] ); } }