I am assuming that this is what you are trying to do:
1) read an item from a record from the database for a specific individual
2) Get the information that a person put into the form, so you can get the number
3) Add the number posted to the number in the database
4) Post the new number to the database
Let's see how this works
// Get information from posted form (this assumes form used POST method)
$username=$_POST['username'];
$userstat=$_POST['userstat'];
//connect to the database:
$host="localhost";
$login_name="some MySQL Login Name";
$password="Password for the Login Name";
$connection=mysql_connect($host,$login_name,$password)
or die("Could not connect to the server");
$db=mysql_select_db("Database_Name",$connection)
or die("could not connect to database");
// next get the info you are looking for
$select="select User_Stat from Table_Name
where User_Name='$username'";
$result=mysql_query($select)
or die("Select from Table_Name had errors");
$row=mysql_fetch_array($result,MYSQL_ASSOC);
if ($row<>"")
extract($row);
else
die("No data to extract");
//Now we add the numbers together
$User_Stat=$User_Stat+$userstat;
//now we post the new number to the database.
$update="update Table_Name set
User_Stat='$User_Stat'
where User_Name='$username'";
$result=mysql_query($update)
or die("Update into Table_Name had errors");
//finally, we close the connection
mysql_close($connection);
This sounds like it might work...