Hi! Can anybody help me, i want to add the results of mysql_num_rows.
$ad = ("SELECT * from campaigns WHERE id=$id)
$result = mysql_num_rows($ad);
I wand to sum all the result. For example, if there are 5 results-
10
20
5
9
16
echo $result;
It will show 5 result. I want to add all 5 results & show 60 as the result.
I google a lot but couldn't get the answer. Plz help!!
$ad = ("SELECT * from campaigns WHERE id=$id)
$result = mysql_num_rows($ad);
I wand to sum all the result. For example, if there are 5 results-
10
20
5
9
16
echo $result;
It will show 5 result. I want to add all 5 results & show 60 as the result.
I google a lot but couldn't get the answer. Plz help!!
Comment