Someone
public text v1 · immutablepublic function get_random($type)
{
return $this->get_listing($this->db->from('custom_listings')->where($type.' !=', '')->orderby(NULL, 'RAND()')->limit(1)->get()->current()->mls_number);
}public function get_random($type)
{
return $this->get_listing($this->db->from('custom_listings')->where($type.' !=', '')->orderby(NULL, 'RAND()')->limit(1)->get()->current()->mls_number);
}