Forum Moderators: open
Here is the problem:
Table sl has 51 rows
Table l has for that example only one row (in production it could be 1 to many rows)
The “limit clause” does not query from sl the first 24 rows but query the following 13 rows. (as per above example)
If a remove the limit it works fine, with limit clause on it returns 0
Which is not expected since at least one row meets the conditions
But I suspect that my condition does also apply to the l table that has only 1 row thus resulting in 0
How could I apply a “no limit” to l
And a limit as shown here on sl
Why I made it:
I have a result page showing four <div> (col) each echoing the result of one of 4 queries with each a different limit clause in order to split the 51 rows
First <div >0 - 12
Second <div> 12 -12
Third <div> 24 - 13
Fourth <div> 37 – 14
I could fix it be creating 4 tables and rem the limit clause but it will be like cheating!