Advertisement
Guest User

Untitled

a guest
Oct 31st, 2014
178
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. public function month_wise_due($grade_due, $new_due, $id, $remaining) {
  2.  
  3. $now1 = time();
  4. $now = date('F, Y', $now1);
  5.  
  6. $store = array(
  7. 'mwf_month' => $now,
  8. 'mwf_previous' => $remaining,
  9. 'mwf_due' => $grade_due,
  10. 'total_due' => $new_due,
  11. 'mwf_student_id' => $id,
  12. 'mwf_pay_day' => 'Not Yet Paid',
  13. 'mwf_payment' => 0,
  14. 'mwf_diff' => $new_due
  15. );
  16.  
  17. $this->db->trans_start();
  18. $this->db->insert('mwf', $store);
  19. $this->db->trans_complete();
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement