How to calculate multiplication value inside the while loop in PHP?

后端 未结 4 1881
情书的邮戳
情书的邮戳 2021-01-26 14:39

I have one while loop which displays data from the database. Now I want multiply two values in one row and display the result in the same row, the same way multiply the values

4条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-01-26 14:56

    you can try

    printf('amount is %d',$row['item'] * $row['amount']);
    

    reference

提交回复
热议问题