Welcome Guest, Not a member yet? Register   Sign In
Cannot Pass More than two variable to view
#4

Okay, I see it now. The $row->price or $row["price"] on line 61 should be the total amount.
I think this will do the trick:
PHP Code:
<p>Total Spends is <?=$total;?></p> 

You're passing the array $inventory_data to the view. One of the elements in this array is "total", right? Use that to display the total amount.
Reply


Messages In This Thread
RE: Cannot Pass More than two variable to view - by Wouter60 - 04-21-2018, 11:56 PM



Theme © iAndrew 2016 - Forum software by © MyBB