Mailinglisten-Archive |
Hallo, >$sql1 = "SELECT AVG(punkte) FROM table WHERE GID='$GID' AND >active='1'"; >$count=send_sql($db,$sql1); >echo $count; probier mal: $sql1 = "SELECT AVG(punkte) AS DSCHNITT FROM table WHERE GID='$GID' AND active='1'"; $count=send_sql($db,$sql1); echo $count[DSCHNITT); Müsste klappen, es sei denn, send_sql() macht was anderes als z.B. mysql_query(). Gruß, Olaf Waltersdorf
php::bar PHP Wiki - Listenarchive