1. 程式人生 > >ci多表查詢,跳轉,訪問方式

ci多表查詢,跳轉,訪問方式

多表查詢:

$data['upvideos'] = $this->db->from('upload_video')->join('vcat', 'vcat.catid = upload_video.catid')->order_by('createtime', 'DESC')->get()->result_array();

跳轉:

redirect('/uploadvideo/index', 'refresh');

訪問方式:

define('IS_POST', strtolower($_SERVER["REQUEST_METHOD
"]) == 'post'); define('IS_GET', strtolower($_SERVER["REQUEST_METHOD"]) == 'get');