Model_registration.php 665 B

1234567891011121314151617181920212223242526
  1. <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
  2. class Model_registration extends Lin_Model
  3. {
  4. function __construct(){
  5. parent::__construct();
  6. $this->load->database();
  7. $this->table = 'registration';
  8. $this->load_table('registration');
  9. }
  10. public function get_number($number)
  11. {
  12. return $this->find("number = '$number'");
  13. }
  14. public function get_orderinfo($orderinfo)
  15. {
  16. return $this->find("orderinfo = '$orderinfo'");
  17. }
  18. public function get_name($name)
  19. {
  20. return $this->find("name = '$name'");
  21. }
  22. public function get_phone($phone)
  23. {
  24. return $this->find("phone = '$phone'");
  25. }
  26. } //end class