📅  最后修改于: 2022-03-11 14:54:24.158000             🧑  作者: Mango
function get_random_page()
{
$this->db->order_by('id', 'RANDOM');
or
$this->db->order_by('rand()');
$this->db->limit(1);
$query = $this->db->get('pages');
return $query->result_array();
}