MySQL Forums
Forum List  »  General

Re: Having issues with the sum() function
Posted by: shanmugarajan k
Date: February 23, 2005 11:35PM

hi....
mysql_query command only return the result as the array form. so u have to get the result by fetching the array using mysql_fetch_row command.
u retriving the result using by column name.

example
while($myrow = mysql_fetch_row($res))
{
$sum =$myrow[0];
//here you get the each coloumn sum value.
}

i hope it's useful for you/

thankyou with regards
shanmuga

Options: ReplyQuote


Subject
Written By
Posted
Re: Having issues with the sum() function
February 23, 2005 11:35PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.