$query = mysql_query("SELECT * FROM whatever"); while ($result = mysql_fetch_array($query)){ $multiply = $result[mathrow]*5; //while 5 can be anything you want } echo $multiply;
UPDATE table SET somevalue=somevalue*8