Pass Variable - Paged Stuff
I want to show 4 stories, together with a "next button". On click, it should load the next 4 stories, and after that the next 4, and so on.
I'm simply using:
-
$(document).ready(function(){
$("#nextButtonLink").click(function() {
$("#p").load("myphpscript.php?thispage=x");
});
});
myphpscript.php loads the stories from the database and echos them out.
(Select * from articles ORDER BY date LIMIT $thispage,4);
Now, my problem is, how do I let my php script know which stories are currently being displayed / which page I'm currently on (in this example the "thispage" variable).
[/code][/quote]