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?
Es fehlt ein Film oder eine Serie? Logge dich ein zum Ergänzen.
Diesen Eintrag bewerten oder zu einer Liste hinzufügen?
Kein Mitglied?
Antwort von Alvaro Octal
am 2. März 2015 um 02:46
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