Jump to content

google search


bertowa

Recommended Posts

Im trying tu use image google image-search from https://developers.g...mage-search/v1/


But the code dont works.


You can see in my test page: www.netbooks.pt/teste.php


the image dont apears


 


 


Before I was using this code, but since a week that will not work:



$jsonurl = "https://ajax.googleapis.com/ajax/services/search/images?v=1.0&q=".$row_rsProdutos['referencia'];
$result = json_decode(file_get_contents($jsonurl), true);
echo "<img height=\"200\" src='{$result['responseData']['results'][0]['tbUrl']}' />";
                 echo $row_rsProdutos['referencia'];
                 echo "<br/>";
$mensagem=' *A imagem pode n&atildeo corresponder ao produto.';
                 echo $mensagem;


someone can give me a hand?
Link to comment
https://forums.phpfreaks.com/topic/279392-google-search/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.