I created a snippet with the following code but I dont get the email address.
<?php
$userID = $modx->getLoginUserID();
$table = $modx->getFullTableName("web_user_attributes");
$userEmail = $modx->db->select("email" ,$table, "id = $userID", "", "");
echo $userID;
echo "
";
echo $userEmail;
?>
This returns the following:
1
Resource id #14
Where am i going wrong?
Thanks
davehaslam@davehaslam.co.uk