This question already has an answer here:
- Warning: A non-numeric value encountered 15 answers
I have a problem in my php code. does anyone know how to fix this? Help me please!
Warning: A non-numeric value encountered in C:\xampp\htdocs\stock\dashboard.php on line 15
Code:
$totalRevenue = "";
while ($orderResult = $orderQuery->fetch_assoc()) {
$totalRevenue += $orderResult['paid'];
}
</div>