简体   繁体   中英

mysql bulk records update?

This code won't work, how can I fix:

<?php $response = $amazonEcs->responsegroup('Large')->lookup('echo $row_Recordset1['ASIN'];');
$title = ($response['Items']['Item']['ItemAttributes']['Title']); print_r($title);?>

Note that if i were to have somewhere else it would correctly connect to the database and call the ASIN from the table and the entire code would work if instead of calling from a table I wrote a static ASIN. So the problem is most likely:

lookup('echo $row_Recordset1['ASIN'];');

The lookup reference won't work in PHP. This is what you need:

lookup($row_Recordset1['ASIN']);

No need for the echo statement since you're already in a PHP block and just need the value of that column passed to the lookup function.

you are calling some lookup function in php , so you can remove echo and single quotes from it

lookup($row_Recordset1["ASIN"])

will work

Please check bellow code.

<?php 
$response = $amazonEcs->responsegroup('Large')->lookup($row_Recordset1['ASIN']);
$title = $response['Items']['Item']['ItemAttributes']['Title']; 
?>

And your lookup function call should be like this.

lookup($row_Recordset1['ASIN']);

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM