Model_noticeemail.php 386 B

123456789101112131415
  1. <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
  2. class Model_noticeemail extends Lin_Model
  3. {
  4. function __construct(){
  5. parent::__construct();
  6. $this->load->database();
  7. $this->table = 'noticeemail';
  8. $this->load_table('noticeemail');
  9. }
  10. public function get_email($email)
  11. {
  12. return $this->find("email = '$email'");
  13. }
  14. } //end class