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?
Не можеш да нађеш филм или серију? Пријави се да додаш.
Желите ли да оцените или додате ову ставку у листу?
Нисте члан?
Одговор од Alvaro Octal
дана 02. март 2015. у 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