ok...this code works in mysql....but not displaying properly in PHP.
$result3 = mysql_query("select avg(s) as avs, avg(f) as avf from results where dcode='1' and yr='2005'", $connection);
echo mysql_result($result3,"avs");
This statement will display avs correctly. However, If I change it fo avf....it still displays the result from avs????
i am soooo confused. Can someone shed some light on this?
thx
$result3 = mysql_query("select avg(s) as avs, avg(f) as avf from results where dcode='1' and yr='2005'", $connection);
echo mysql_result($result3,"avs");
This statement will display avs correctly. However, If I change it fo avf....it still displays the result from avs????
i am soooo confused. Can someone shed some light on this?
thx