MySQL SUM() question
Posted: Wed Mar 10, 2004 8:32 pm
Hey i have a select statement like:
"SELECT *, SUM(calls) FROM tablename"
but... will it work? I mean i try using mysql_fetch_row and _fetch but always get errors... If this can be done this way, can someone show me how i would go about getting the value of SUM(calls)??
Thanks!
"SELECT *, SUM(calls) FROM tablename"
but... will it work? I mean i try using mysql_fetch_row and _fetch but always get errors... If this can be done this way, can someone show me how i would go about getting the value of SUM(calls)??
Thanks!