php - How to add a value from a HTML form to a value in a database -
i trying create form allow user update data form existing amount in database. here have far appears double value. thinking needed pull value database , add data form. <?php $username = "username"; $password = "password"; $hostname = "localhost"; //connection database $dbhandle = mysql_connect($hostname, $username, $password) or die("unable connect mysql"); echo "<font face=tahoma color=#ff000><b>connected mysql</b></font><br><br>"; //select database work $selected = mysql_select_db("pdogclan_points",$dbhandle) or die("did change"); // formulate query $_post["filter"]; $memid = mysql_real_escape_string($_post["member_id"]); $query = sprintf("select member_id, bank, reward_1, reward_2, reward_3 points_rewards member_id = '$memid'") or die("could not formulate query"); //execute sql query , return records $result = mysql...