Scenario:
I have a MySql Database called "tblreqslipdetails" it has a field "subtotals" which has a value = Integer (ex. 4500.50, 2500, 3500.57.. so on..) it also has a field which has "idcategory" which has a value of (2, or 4 or 5).
Question:
How can I create a query base on my "idcategory" and add the value in my field "subtotals"?
Like:
From Where ID="idcategory" add array??? "not sure really" "subtotal" = Total
To cut it short, I would like to create a simple script where I can add the subtotals from my fields..
Thanks in advance.