我有以下代码,我获取除flag_images和flag_created之外的列的数据。 行flag_images包含整数0,但是当我尝试回显它们时,我得到了注意。 可能是什么问题? 请帮忙
$product = [];
$row_count++;
// echo "\r\n [".$row_count."] " . $data[0] . " <=======\r\n";
$amazon_db = sprintf("select `ratings`,`manufacturer`,`reviews`,`old_price`,`stock`,`asin`,`product_name`,`price`,`description`,`zap_price`,`product_link`,`shipping_o_price`,`images`,`flag_images`,`flag_created` from `amazon-crawler` WHERE `asin` ='%s' limit 0,1", $data[0]);
$amazon_result = $amazon_conn->query($amazon_db);
if (@$amazon_result->num_rows > 0) {
while ($row = $amazon_result->fetch_assoc()) {
$product['asin'] = $row['asin'];
$product['manufacturer'] = $row['manufacturer'];
$product['price'] = $row['price'];
$product['zap_link_price'] = $row['zap_price'];
$product['product_link'] = $row['product_link'];
$product['shipping_o_price'] = $row['shipping_o_price'];
$product['images'] = $row['images'];
**$product['flag_images'] = $row['flag_images'];
$product['flag_created'] = $row['flag_created'];**
echo $product['flag_created'];
echo $product['flag_images'];
$product['stock'] = $row['stock'];
$product['amazon_ratings'] = $row['ratings'];