Hello all,
I have a site with pagination from a mysql query which works fine, but have this particular query result that is very tricky to paginate since I have no way of knowing which results are returned. It goes like this:
I grab an array of ids first from a query (the query is inmaterial), then I do another query and only show the images if the ids in the second query are NOT in the first one:
Since I have no way of knowing how many rows will actually show here, my pagination code does not work. I should add that the query can also be restricted by search criteria but that shouldn't affect this issue.PHP Code:while ($row = mysql_fetch_assoc($getallRes)) {
if (!in_array($row['id'], $votedImage)) {
$title = $row['title'];
$imageId = $row['id'];
// echo title, etc with some formatting here
}
}
Can anyone think of a way to paginate this?
Thanks.








Bookmarks