Целый форум оффтопщиков... PHP (создаем страницу, которая будет отдавать случайную запись, например rand_text.php): <?php // ... Здесь коннект с БД $query = "select * from vopros order by rand() limit 1"; $result = mysql_query($query); $row = mysql_fetch_array($result); print($row['text']); ?> На странице HTML: <h1 id="text" style="padding-top:100px;" align="center"><?php $query = "select * from vopros order by rand() limit 1"; $result = mysql_query($query); $row = mysql_fetch_array($result); print($row['text'] . '<br>'); ?> </h1> <input id="updateTextButton" type="button" value="Получить" class="button"> jQuery JavaScript: $('#updateTextButton').click(function(){ $.ajax({ url: "rand_text.php", dataType: 'html', success: function( content ){ $('#text').html(); } }); }); Не кажется, что раздел "Коммерческие услуги" вас разбаловал?