with one query I would something like this
to get the number of results and this
to get the subset I need, but now I have a union of 4 selects and I want the count of the whole and the limit to be applied to the whole results also any ideas?
Code:
SELECT COUNT(id) AS numrows FROM pelates where owned='112';
Code:
SELECT * FROM pelates where owned='122' LIMIT 10,20
Comment