I have a very long foreach that I would like to load in steps as the user scrolls down (infinite scroll), but I've searched for a solution and did not found a way to do that.
my code resembles this:
foreach ($multi_array as $key=>$value){
echo $value[0]."<br />";
echo $value[1]."<br />";
echo $value[2]."<br />";
echo $value[3]."<br />";
echo $value[4]."<br />";
....
}
the result is very long and I would like to include a infinite scroll instead of the tradition pagination.
I know that effect has to be done in javascript and I allready tried jquery waypoints, but, for some reason, I couldn't get it to work.