All pastes #544152 Raw Edit

Unnamed

public php v1 · immutable
·published 2007-06-06 09:44 UTC
rendered paste body
$query="SELECT * FROM figures";$result=mysql_query($query);$row=mysql_fetch_array($result);$jen_year_total="";$i=1;while($row=mysql_fetch_array($result)){$jen_year_total += $row["blah_$i"];echo $row["blah_$i"];$i++;}echo $jen_year_total;