<div class="bottom">
<a href="#" class="button">кнопка</a>
</div>
$query = 'SELECT * FROM papers WHERE 1 ORDER BY RAND() LIMIT 1' ;
$result = mysqli_query($link, $query) or die('Запрос не удался: '.mysqli_error());
while ($line = mysqli_fetch_array($result, MYSQLI_ASSOC)) {
echo $line['id'].' '. $line['name'];';
}