Please do not use “LIMIT” in the SELECT statement. wpDataTables adds it automatically and it will be overridden.
The PHP SQL parser we use will simply override it, so you can't use it like that. If you have a row identifier column (like rowID), you can use "BETWEEN" like:
Hello once again,
I'm trying to have the LIMIT function on my sql, but it isn't limiting when the output is displayed, this is my code:
SELECT * FROM tableName LIMIT 24
Kind regards,
Francis.
Hello Francis.
Please do not use “LIMIT” in the SELECT statement. wpDataTables adds it automatically and it will be overridden.
The PHP SQL parser we use will simply override it, so you can't use it like that. If you have a row identifier column (like rowID), you can use "BETWEEN" like:
SELECT * FROM tableName
WHERE id BETWEEN 1 AND 24
Kind Regards,
Aleksandar Vuković
[email protected]
Rate my support
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables