pixelead0 / tmdb_v3-PHP-API-

Wrapper in PHP for The Movie Data Base version 3
119 stars 81 forks source link

Wrong code in readme file #8

Closed JeroenDelbroek closed 10 years ago

JeroenDelbroek commented 11 years ago

Hello,

The code in the readme file about the search function is wrong. If I use :

$searchTitle = $tmdb_V3->searchMovie('$title');

its searching for movies with the title "$title". The code above should be replaced with:

$searchTitle = $tmdb_V3->searchMovie($title);

The title variable isn't between quotes anymore, and thus looking for movies with their title equal to the entered value in $title.

I hope my explanation is clear.

Regards,

Jeroen

Naturaldoc commented 10 years ago

I ran into the same issue. Took me a while to track it down.

pixelead0 commented 10 years ago

Thank you very much for their comments.