Hi everybody
i need a help
im trying to call the email of user have write article from database.
in custom html/php i have put this
But the field display the email of user connected not the email of the user have created the article.
Somebody can help me?
Thanks in advance
i need a help
im trying to call the email of user have write article from database.
in custom html/php i have put this
<?php
$database =& JFactory::getDBO();
$query = "SELECT * FROM #__users c JOIN #__content u ON c.id = u.id";
$database->setQuery( $query );
$useremail = $database->loadObject();
echo $useremail->email;
?>
But the field display the email of user connected not the email of the user have created the article.
Somebody can help me?
Thanks in advance