/* this part contains the connection parameters */ $query = "SELECT val FROM table"; $result = mysql_query($query); /* this makes sure the result contains data */ WHILE($row = mysql_fetch_assoc($result)){ echo $row['val']; }
$yournumber = $yournumber + $row['val'];
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)