Hi,
I'm fairly new to this whole PHP and MYSql thing. I've run into a problem and can't seem to find any reference that explains this well.
I have created a SELECT statement that picks up values from one field from a table where field = a value.
I then get my result set. I have added AVG(field) to my select statement because I need to calculate the average value of all the values in that field.
I then get the row value using: mysql_fetch_object
My problem: I have know idea how to get that average value in order to display it using the $row-> and echo syntax.
Can someone please give my a real live example of how this really works? I didn't try the easy road.... I have been battling with this for a couple of days. Hence why I've resorted to you folks.
Thanks a million
Nelson Cardoso
Nelson@cardoso.ca