I am trying to select some atributes of the table Animals and at the same time selecting their photos.
The problem is that in my case I want to select 20 animals depending on the page (For example, if I am in page 2 I want to take the animals between 20-40
I am doing an splice for that, but I don't know how to make it work, it throws me that error.
Anyobody knows why or how?
$cantidad is the quantity of animals I want to take $pagina is the page