修改完整代码...而不只是小片段.. $ row是变量的开头吗?
<?php
error_reporting(-1);
$sql = "SELECT * FROM products Where available like 'Y%' order by manufacturer2, product ASC";
$query = mysql_query($sql);
while($row = mysql_fetch_array($query)) {
<--------------------->>
$new_product = "$row"; if ($new_product == "N")
{ echo "No"; } elseif ($new_product == "Y")
{ echo "Yes"; }
<-------->
echo "<div class=reportsalesnew_product>".$row['new_product']."</div>";
echo "<div class=reportsalescase_avail>".$row['case_avail']."</div>";
echo "<div class=reportsalesseasonal>".$row['seasonal']."</div>";
echo "<div class=reportsaleseigth_bbl>".$row['eigth_bbl']."</div>";
echo "<div class=reportsalesquarter_bbl>".$row['quarter_bbl']."</div>";
echo "<div class=reportsaleshalf_bbl>".$row['half_bbl']."</div>";
echo "<div class=reportsalessixth_bbl>".$row['sixth_bbl']."</div>";
echo "<div class=reportsalesthirty_liter>".$row['thirty_liter']."</div>";
echo "<div class=reportsalesfifty_liter>".$row['fifty_liter']."</div>";
echo "</div>";
}
?>
<?php
error_reporting(-1);
$sql = "SELECT * FROM products Where available like 'Y%' order by manufacturer2, product ASC";
$query = mysql_query($sql);
while($row = mysql_fetch_array($query)) {