Logo white

Alex Savenko / semena

Sign in
  • Sign in
  • Project
  • Files
  • Commits
  • Network
  • Graphs
  • Milestones
  • Issues 0
  • Merge Requests 0
  • Labels
  • Wiki
  • semena
  • src
  • lib
  • models
  • payment.php
  • first push project
    dce46e80
    Alex Savenko authored
    2016-12-07 11:12:12 +0200  
    Browse Code ยป
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
            ]
        );
    }
}