Hi! I use PHP TMDB API with this:
public function upcomingMovies($page=1) { return $this->_call('movie/upcoming', 'page='.$page); }
This shows all movie on first page in upcoming movies.
How can I do, show the second, 4th, or 10th movie on the page?
Un film, une émission télévisée ou un artiste est introuvable ? Connectez-vous afin de créer une nouvelle fiche.
Vous souhaitez évaluer ou ajouter cet élément à une liste ?
Pas encore membre ?
Réponse de Alvaro Octal
le 2 mars 2015 à 02h46
by iterating over whatever that function returns to you, surely an array
$movies = upcomingMovies($pageYouWant);
print_r ($movies[$movieYouWant]);
anyway, I recommend you to update the wrapper, I was improving some things, as the documentation, some refactor etc. https://github.com/Alvaroctal/TMDB-PHP-API