var loaded = 0;
$('.loadmore').click(function() {
$.ajax({
type: "POST",
url: "ajax/load_more.php",
data: {num:loaded}
}).done(function(result) {
$('.main').append(result);
});
loaded++;
});