这是查询:
$querySum = "SELECT SUM(realcost)FROM checking-apartments ";
$result1 = mysqli_query($link, $querySum);
这就是我试图回应的地方:
echo'<table id="tableSum">';
while($row = $result1->fetch_array())
{
echo '<td style="padding-left:1200px; font-weight:bold;">Total Estimated Costs: ' . $row['$result1'] . '</td>
<td style="font-weight:bold;">Total Real Costs: ' . $row['$result1'] . '</td>';
}
echo '</table>';