I have records on my table and I have to update the records.if records are available then add the same value which is already in a database.
For example: I have column name aMan and value is 30 so I have to update same value and new values will be 60.
//Total column value=column value + column value
if ($check_record >0) {
// will check the records available or not
$sql="UPDATE man SET aMan = '$action_points' where user_id='$id'";
} else {
$new=$column_value + $column_value;
$sql="UPDATE man SET aMan = '$new' where user_id='$id'";
}
In short I have to add the value.Would you help me in this?
