say i want to return the company name? field is called cb_companyname.
can i asses it like this?
$id = $_GET["user"];
if ($iduser == "") //for example when user is logged-in on the site
{
$user =& JFactory::getUser();
$iduser = $user->get('cb_companyname');
}