Well, the way we went about doing it is select all of them....Let's say it's 100. And then do as such...
//queryCount is however many per page (we had
//15 results per page). offset is the query
//we finished with on the last page.
while ($ary = sybase_fetch_array($returnQuery)) {
if (($queryCount > $offset) && ($queryCount <= ($offset+$queryLimit))){
echo "$ary[0]";
}
}
hope this helps you out. You can easily edit this to fit your needs.