Im a complete nooby with php so I'm trying to find a code that will retrieve a username from a table (contentbuilder) and put that username in the recipient field of a Joomla messaging extension, uddeim.

the code the developer gave me:
$user = JFactory::getUser();
<a href="/<?php echo

But it does not work.
Please help.