All pastes #551855 Raw Edit

Miscellany

public php v1 · immutable
·published 2007-06-08 23:47 UTC
rendered paste body
<?$query = mysql_query("select * from `data`");while($array = mysql_fetch_array($query))     {     $total_land = ($array['land']+$total_land);     $total_netscore = ($array['netscore']+$total_netscore);     $total_pop = ($array['pop']+$total_pop);     }$world_gdp = (($total_land+$total_netscore)/$total_pop);?>