I am new to php and sql, and i have one tiny question about how to realize sql query , that can:
Thank you )
SELECT col FROM table LIMIT 0,5; -- First page, rows 1-5
SELECT col FROM table LIMIT 5,5; -- Second page, rows 6-10
SELECT col FROM table LIMIT 10,5; -- Third page, rows 11-15
Read the LIMIT section on the MySQL SELECT helppage. If you want to display the total number of rows available, you can either do an extra count, or use the ROW_COUNT function.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With