I have Joomla 3.8.11 and RSFORM 2.0.14.
I want to update the Community Builder fields of the logged-in user.
But it doesn't work. When I go to see the profile, I don't see the fields updated and there is no error message.
Here is the code that I added in php option "Script called on form process":
$db = JFactory::getDBO(); $user = JFactory::getUser(); $db->setQuery("UPDATE njhggy_comprofiler SET cb_skills = '".$db->escape($_POST['form']['skills'])."' WHERE user_id = '".$db->escape($user->id)."'"); $db->query();
Does anyone know what I am doing wrong?