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?
Can't find a movie or TV show? Login to create it.
Want to rate or add this item to a list?
Not a member?
Reply by Alvaro Octal
on March 2, 2015 at 2:46 AM
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