When i search a Tv with query: https://api.themoviedb.org/3/search/tv?page=1&query=Malcolm%20In%20The%20Middle&language=fr&api_key=XXXXXXX, i want just the name of the serie but i don't know how do this, bceause the "results" is a json array. Help me please.
Sorry my langage is french and not english
Nie możesz znaleźć filmu lub serialu? Zaloguj się, aby go utworzyć.
Want to rate or add this item to a list?
Not a member?
Odpowiedź użytkownika Travis Bell
12 grudnia 2016 o godz. 11:41AM
Hi @XPheNiiXz You'll have to iterate over the array. Every language is going to be slightly different, but it's just an array so it's as easy as iterating over it and doing what you want with each object. Here's a simple print:
Odpowiedź użytkownika XPheNiiXz
13 grudnia 2016 o godz. 2:12AM
Thank you for your reply @travisbell . How can I do in php ? :)
Odpowiedź użytkownika XPheNiiXz
13 grudnia 2016 o godz. 8:48AM
Because my json is:
And i just want the original name or the poster path, but i can't :(
I can have the page but not any item in the results
Odpowiedź użytkownika XPheNiiXz
13 grudnia 2016 o godz. 9:31AM
I have an aray too:
Odpowiedź użytkownika Travis Bell
13 grudnia 2016 o godz. 10:09AM
Unfortunately, I can't answer your question about PHP as I have never used it.
Best thing I can suggest is taking a look at one of the PHP libraries and either use one, or at the very least look at how some of the responses are handled in PHP.
Cheers.
Odpowiedź użytkownika XPheNiiXz
13 grudnia 2016 o godz. 10:18AM
Thanks i will look at
Odpowiedź użytkownika XPheNiiXz
14 grudnia 2016 o godz. 5:25AM
I find how do this.
Thank you.