<?php class medoo { protected $database_type = 'mysql'; // For MySQL, MariaDB, MSSQL, Sybase, PostgreSQL, Oracle protected $server = 'localhost'; ......略 }之後就能夠直接取用此工具囉!~ ex:
<?php Controller admin.php in application/controllers class Admin extends CI_Controller { function index() { $this->load->library('medoo','datebase_name'); //第二欄位可設params $data = $this->medoo->select('table_name', '*'); } }
沒有留言:
張貼留言