Retrieve part of a MySQL column with PHP
- by Gerardo Marset
For instance, if I have the following table:
+----+---+----------+
| id | a | position |
+----+---+----------+
| 0 | 0 | 0 |
| 1 | 0 | 1 |
| 2 | 1 | 4 |
| 3 | 1 | 9 |
| 4 | 1 | 6 |
| 5 | 1 | 1 |
+----+---+----------+
and I want to get an array that contains the first 100 values from position where…