Ver Mensaje Individual
  #10 (permalink)  
Antiguo 16/10/2013, 11:16
Avatar de andresdzphp
andresdzphp
Colaborador
 
Fecha de Ingreso: julio-2011
Ubicación: $this->Colombia;
Mensajes: 2.749
Antigüedad: 12 años, 9 meses
Puntos: 793
Respuesta: Limitar consulta XML con XPATH

Cita:
Iniciado por loCk636 Ver Mensaje
Error mio funciona perfectamente
Ya se me hacía raro, entre 10 y 50 te faltaría un igual

Código PHP:
Ver original
  1. $xpath = $xml->xpath('//PELICULA[position() >= 10 and position() <= 50]');
__________________
Si sabemos como leer e interpretar el manual será mucho más fácil aprender PHP. En lugar de confiar en ejemplos o copiar y pegar - PHP