Also, just a note on MySQL.
You can alias columns (or fake columns, as in this case) with a name so they are easy to call, like so:
$getprices = mysql_query("SELECT AVG(bid) AS average FROM bids WHERE project='$id'");
$bid3 = mysql_result($getprices,0,"average");
echo $bid3;
Just a little tidbit of info for the future.