Is this what you are looking for? botanicar
if ($action == "referer")
{
$count = get_row_count("referer");
list ($pagertop, $pagerbottom, $limit) = pager(20, $count, 'admincp.php?action=referer&');
$res = SQL_Query_exec("SELECT * FROM `referer` ORDER BY `added` DESC $limit");
stdhead("Site Referer");
begin_frame("Site Referer");
if ( mysqli_num_rows($res) > 0 )
{
?>
<table class="table_table" cellpadding="3" cellspacing="3" width="75%" align="center">
<tr>
<th class="table_head">Referer</th>
<th class="table_head">Added</th>
<th class="table_head">Count</th>
</tr>
<?php while ($row = mysqli_fetch_assoc($res)): ?>
<tr>
<td class="table_col1"><a href="<?php echo $row['referer']; ?>"><?php echo $row['referer']; ?></a></td>
<td class="table_col2"><?php echo date('F d, Y g:i a',$row['added']); ?></td>
<td class="table_col1"><?php echo number_format($row['count']); ?></td>
</tr>
<?php endwhile; ?>
</table>
<?php
if ( $count > 20 ) echo $pagerbottom;
}
else
{
echo('<center><b>No Referrals Found...</b></center>');
}
end_frame();
navmenu();
stdfoot();
}
TTv3 Micro Edition
Ubuntu 20.04.6 LTS Server
Mysql Version: 10.3.39-MariaDB-0ubuntu0.20.04.2
PHP Version: 7.4.3-4ubuntu2.20
Apache Version: Apache/2.4.59 (Ubuntu)
Ubuntu 20.04.6 LTS Server
Mysql Version: 10.3.39-MariaDB-0ubuntu0.20.04.2
PHP Version: 7.4.3-4ubuntu2.20
Apache Version: Apache/2.4.59 (Ubuntu)