$count = count($down_length);
for ($i = 0; $i < $count; $i++) {
$sql = "insert into orders (invoice_id,up_length,up_shoulder,up_sleeve1,up_sleeve2,up_sleeve3,up_chest1,up_chest2,
up_stomach1,up_stomach2,up_hips1,up_hips2,up_neck,down_length,down_fork1,down_fork2,down_bottom1,down_bottom2,down_knee1,down_knee2,
down_thigh1,down_thigh2,down_waist1,down_waist2,down_hips,product,any_other)
values('$last_invoiceid','$top_length[$i]','$top_shoulder[$i]','$top_sleeve1[$i]','$top_sleeve2[$i]','$top_sleeve3[$i]','$top_chest1[$i]','$top_chest2[$i]',
'$top_stomach1[$i]','$top_stomach2[$i]','$top_hips1[$i]','$top_hips2[$i]','$top_neck[$i]','$down_length[$i]','$down_fork1[$i]','$down_fork2[$i]','$down_bottom1[$i]',
'$down_bottom2[$i]','$down_knee1[$i]','$down_knee2[$i]','$down_thigh1[$i]','$down_thigh2[$i]','$down_waist1[$i]','$down_waist2[$i]','$down_hips[$i]','$product[$i]',
'$any_others[$i]')";
$query = mysqli_query($conn, $sql);
var_dump($query);
echo '<br>';}
if ($query) {
header('location:../product_print.php');
}
它可以在xamp服务器localhost上完美地工作,但是在运行PHP 7的实时服务器上运行$ query时返回false。我在这里做什么错了?