$sql = mysql_query("SELECT * From orders");
while ($row = mysql_fetch_array($sql))
{
$datef = strtotime($row['Date1']);
$dates = strtotime($row['Date2']);
$rprice = $row['Pprice'];
$datediff = floor(($datef + $dates ) / 86400);
$total = $datediff * $rprice;
echo $total;
}
在该代码之后,我想更新一个表并将每行的价格插入到列中。至于我回声,$total
我只回来了 1 行...