Use this if you are changing the field and not adding a new record. mysql_query("UPDATE table1 SET names = '$client1', phonenum = '$phonenum' WHERE boardname ='$boardname'");
mysql_query("UPDATE table1 SET names = '$client1', phonenum = '$phonenum' WHERE boardname ='$boardname'");