hi, I am generating records through php/sql, as u can see the code displays 5 records, what Im trying to do is program so that when the next button is pressed the next 5 records will show?? any help much appreciated thank you,
the code -
function show(qstring,qtype){
$("#vsdiv").show();
var myurl="scripts/searchpage.php";
$.ajax({
url: myurl, dataType:'json',data:{querystring:qstring,querytype:qtype},
success: function(member){
$("#results").append('<tr class="me">'+
'<th>#REC</th><th>name</th><th>surname</th>');
var j=0;var totrecs=1;
for(var i=0;i<5;i++){
$("#results").append('<tr class="rows'+j+'">'+
'<td class="ids" id="z'+i+'">'+totrecs+'</td>'+
'<td>'+name[i].bdate+'</td>'+
'<td class="users" id="username'+i+'">'+member[i].username+'</td>'+
'<td id="contact'+i+'">'+member[i].fname+' '+member[i].lname+'</td>'+
'<td><input type="checkbox" name="whome" id="showMe'+i+'"'+
'class="boxes" onclick="getMe('+i+')" /></td></tr>');
totrecs++;
j++;
}
}
});
}
and for the html button -
<input type="button" id="next5" title="Next 5 Records" disabled="disabled" value="Next 5>>" />