Ver Mensaje Individual
  #15 (permalink)  
Antiguo 10/04/2012, 10:52
charlescuellar
 
Fecha de Ingreso: abril-2008
Mensajes: 310
Antigüedad: 16 años
Puntos: 4
Respuesta: como ordenar resultado

en un chat tambien pregunte y me disen haga esto pero no lo entiendo del todo

Código PHP:
Ver original
  1. $result[$position] = array("titulo"=>$titlecate,"id"=> $playlistId);
  2. con eso ordeneas $result o lo imprimes al reves
  3. for($i=count($result); $i<0; $i--){  $obj=$result[$i]; echo "<li>".html::link("index/categoria/{$obj['titulo']}/{$obj['id']}",{$obj['titulo']})."</li>"; }