Hi guys, I am stucked with this again;
Visual Example:
1 2
----------- -----------
1 1
1 2
2 1
2 2
SQL coding Example:
$query ="SELECT SUM(income) FROM customer ORDER BY cust_id ASC";
$result = mysql_query($query) or die(mysql_error());
$row = mysql_num_rows($result);
The question is: How do I add the values from Row #2 with the column of 1212?
What I need now is the value of 1+2+1+2. My SQL codes is just counting the number of rows but I need the value. How do I do it?
1) This is the wrong place to ask. Go IT Support and Tech Corner.
2) This is double posting, so won't ask FI to shift the thread.
http://www.sgforums.com/forums/2250/topics/341779