- Posts: 14
- Thank you received: 0
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
John Waraksa wrote: Yes, your original PHP code was correct but missing one required line:
return $result;
So complete functioning code for RSForm! Pro is:
//<code>
$user = JFactory::getUser();
$db = JFactory::getDBO();
$db->setQuery("SELECT last_name FROM syx8v_osmembership_subscribers WHERE user_id=".$user->id);
$result = $db->loadResult();
return $result;
//</code>
Again, thank you for your help as I probably would have never figured out a working PHP code.
Please Log in or Create an account to join the conversation.