use Joomla\CMS\Factory;
$db = Factory::getDbo();
$query = "SELECT parent_id FROM #__affiliate_tracker_accounts where user_id='[user_id]' ";
$db->setQuery($query);
$comid= $db->loadResult();
$query = "SELECT a.firstname, a.lastname, a.user_id FROM #__comprofiler a inner join #__affiliate_tracker_accounts b on b.user_id=a.id where b.id='$comid' ";
$db->setQuery($query);
$comProfiler_user= $db->loadObject();
$nom = $comProfiler_user->lastname;
$prenom = $comProfiler_user->firstname;
$userid = $comProfiler_user->user_id;
echo '<a href="profil/'.$userid.'" >'.$prenom.' '.$nom.'</a>';
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.