Information Page
Permalink
Hi,
I am trying to build a list for a client but have minimal experience coding. Here is what I am trying to do. I have created a version of the top five downloads page and extended it so they can see more downloads than just five. On top of this I would like to show the users email address. Everything is working except I can't for the life of me figure out how to display a users email address in the table. I can echo back the $uID but I just don't seem to understand how to query the DB Users table to display the email address associated with the user. Any help would be greatly appreciated.
Here is my code:
I am trying to build a list for a client but have minimal experience coding. Here is what I am trying to do. I have created a version of the top five downloads page and extended it so they can see more downloads than just five. On top of this I would like to show the users email address. Everything is working except I can't for the life of me figure out how to display a users email address in the table. I can echo back the $uID but I just don't seem to understand how to query the DB Users table to display the email address associated with the user. Any help would be greatly appreciated.
Here is my code:
<?php defined('C5_EXECUTE') or die("Access Denied."); ?> <?php $db = Loader::db(); $downloads = File::getDownloadStatistics(100); //$this->set('downloads', $downloads); ?> <br /><br /> <h3><center><?php echo t('100 Most Recent Downloads')?></center></h3> <table class="table" id="ccm-site-statistics-downloads"> <thead> <tr> <th><?php echo t('File')?></th> <th><?php echo t('User')?></th>
Viewing 15 lines of 75 lines. View entire code block.