Ver Mensaje Individual
  #3 (permalink)  
Antiguo 23/03/2012, 07:24
charlescuellar
 
Fecha de Ingreso: abril-2008
Mensajes: 310
Antigüedad: 16 años
Puntos: 4
Respuesta: filtrar por nombre

lo datos los extraigo del api de youtube y lo muestro asi

Código PHP:
Ver original
  1. <?php
  2.     // set feed URL
  3.     $feedURL = 'http://gdata.youtube.com/feeds/api/users/xxxx/playlists';
  4.    
  5.     // read feed into SimpleXML object
  6.     $sxml = simplexml_load_file($feedURL);
  7.    
  8.     // iterate over entries in feed
  9.  
  10.  
  11.     foreach ($sxml->entry as $entry) :
  12.       $titlecate = $entry->title;
  13.    
  14.         // get nodes in media: namespace for media information
  15.         $media = $entry->children('http://search.yahoo.com/mrss/');
  16.    
  17.         // obtener <yt:playlistId> node    
  18.         $yt = $entry->children('http://gdata.youtube.com/schemas/2007');
  19.         $playlistId = $yt->playlistId;
  20.    
  21.         echo "<li>".html::link("index/categoria/$titlecate/$playlistId",$entry->title)."</li>";
  22.    
  23.     endforeach;
  24.  
  25. ?>

asi como lo tengo me muestra el listado completo,
como hago la condicion para q me filtre por un parametro ya determinado