Hello!
I'm currently using RSForms Pro, and I desperately need some help with this issue in the title. I think I'm on the right track, but only need a tweek to get this done.
I currently have this code that is appropriately getting the user id from the author of the K2 item on page:
$db = JFactory::getDBO();
$articleid = JRequest::getInt('id');
$db->setQuery('SELECT created_by FROM #__k2_items WHERE id='.$articleid);
$myid=$db->loadResult();
return $db->loadResult();
Is there a way to make this code return the user's username instead of the user's ID?