require_once 'include/BestBuy/Service/Remix.php';  
$skuid = rawurldecode($_GET['skuid']);  
$apiKey = 'tfvs7h89pwn开发者_如何学C4pzmyj9nxemmg'; // Your API key
$remix  = new BestBuy_Service_Remix($apiKey);  
$result = $remix->product('$skuid','json')  
->show(array('url'))  
->query();  
$data = json_decode ($result, true);  
$feed = $data['url'];  
print <<< FEEDS  
$feed  
FEEDS;  
When I put this script into my page, the $feed will echo the current URL. But when I manually supply the script with an integer, replacing ($skuid) it will be successful. It's really weird, But I think it has something to do with me using a variable in that specific array.
And it is also weird, because It was working before I re arranged some of the HTML.
I'm trying to approach this problem the most logical way.
Please help. Thanks.
should you have $skuid in quotes? I would expect:
$result = $remix->product($skuid,'json') 
rather than
$result = $remix->product('$skuid','json') 
 
         
                                         
                                         
                                         
                                        ![Interactive visualization of a graph in python [closed]](https://www.devze.com/res/2023/04-10/09/92d32fe8c0d22fb96bd6f6e8b7d1f457.gif) 
                                         
                                         
                                         
                                         加载中,请稍侯......
 加载中,请稍侯......
      
精彩评论