ID
別のphpファイルに投稿するjQueryコードがあります
<script type="text/javascript">
$(function() {
//More Button
$('.more').live("click",function() {
var ID = $(this).attr("id");
if(ID){
$("#more"+ID).html('<img src="moreajax.gif" />');
$.ajax({
type: "POST",
url: "ajax_more.php",
data: "lastmsg="+ ID,
cache: false,
success: function(html){
$("ol#updates").append(html);
$("#more"+ID).remove();
}
});
}else{
$(".morebox").html('The End');
}
return false;
});
});
</script>
私が知りたいのは、「最後のマッサージID」とともに別のクエリを投稿する方法です。値 (pid) を出力する mysql クエリがあります。これを「最後のマッサージ ID」と一緒に投稿するにはどうすればよいですか。ありがとうございます。