If you are looking to update data in wordpress database, please follow the below example::
global $wpdb;
$address_data['state'] = $_REQUEST['state'][$i];
$address_data['country'] = $_REQUEST['country'][$i];
$address_data['zipcode'] = $_REQUEST['zipcode'][$i];
$where['id'] = 5;
$wpdb->update('wp_connections_address', $address_data, $where);
// now the record will update into the database
0 Comment(s)