Hi all, I added new column in pre-existing mysql table and wanted it to update by using php script. I am trying to add value using update_user() function. But its not getting updated. Can anyone please suggest me which things which are necessary to be done or any variables to be set before using this function? Please help..... Thank you.
You should add your field from amember CP -> Add fields with type set to SQL, then you can update it: PHP: $u = $db->get_user($member_id);$u[fieldname] = "value";$db->update_user($member_id, $u);