$query = "SELECT * FROM add_post ORDER BY id DESC";
$rows= mysql_query($query);
<table>
<?php while($row = mysql_fetch_assoc()): ?>
<tr>
<td><?php print $row['title'] ?></td>
</tr>
<?php endwhile; ?>
</table>
$(function () {
$('a.show_popup').click(function (e) {
e.preventDefault();
var date = $(this).attr('date');
$('.popup reg_form p').text(date);
$('div.'+$(this).attr("rel")).fadeIn(500);
$("body").append("<div id='overlay'></div>");
$('#overlay').show().css({'filter' : 'alpha(opacity=80)'});
});
});