Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
您好,我如何从数据库中获取值并将它们放入变量中,以便我可以在数学运算符中使用它们,因为现在当我尝试这样做时显示空白。当我写 echo $row['sugeneruoja']; 它时,它显示了值,但是当我尝试像 $Investment = $Investment+1+$MonInvestment*12))*1+$row["sugeneruoja"]*$Interest); 它不工作一样进行数学运算时
echo $row['sugeneruoja'];
$Investment = $Investment+1+$MonInvestment*12))*1+$row["sugeneruoja"]*$Interest);