1234567891011121314151617181920212223242526 |
- <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
- class Model_registration extends Lin_Model
- {
- function __construct(){
- parent::__construct();
- $this->load->database();
- $this->table = 'registration';
- $this->load_table('registration');
- }
- public function get_number($number)
- {
- return $this->find("number = '$number'");
- }
- public function get_orderinfo($orderinfo)
- {
- return $this->find("orderinfo = '$orderinfo'");
- }
- public function get_name($name)
- {
- return $this->find("name = '$name'");
- }
- public function get_phone($phone)
- {
- return $this->find("phone = '$phone'");
- }
- } //end class
|