dynamic load while scrolling

dynamic load while scrolling

hello, im using this tutorial on loading mysql data while scrolling a page, however i need to complicate it a bit more to support my system.

http://www.9lessons.info/2009/07/loa...query-php.html

basically the php script above only gets normal queries by id number of the last row, however my queries are dynamic and when ever they are run they return a different set of numbers. for example 5,8,14,20,43... vs 1,2,3,4,5...

is there a way to rewrite the jquery function to get a specific list of queries?

like gather all the id's that the query returns and inject those into jquery, and then that can cycle through the id's?