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?