Hello everyone, Codeigniter Brasil, I have a query that returns everything perfect on localhost but the server does not return the way it was written.
It is to return 6 results but on the server it returns the amount that it finds best up to 6.
$this->db->limit(6);
$this->db->select("*");
$this->db->from("vips");
$this->db->join("anuncios", "anuncios.id = vips.idPostVip");
$this->db->order_by('RAND()');
return $this->db->get()->result_array();
Any tips?
Any PHP configuration?
Help me Rs.
Thank you.