| 12345678910111213141516171819202122 | <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); class Model_Purchase extends Lin_Model {	function __construct(){	parent::__construct();	$this->load->database();	$this->table = 'purchase';    $this->load_table('purchase');}	public function get_user($user)	{		return  $this->find("user = '$user'");		}	public function get_bm($bm)	{		return  $this->find("bm = '$bm'");		}	public function get_title($title)	{		return  $this->find("title = '$title'");		}}  //end class
 |