I have a simple table (product) with fields id, label.
I want to get the n-th unique row from it. If i query like this:
$query = 'SELECT * FROM product ORDER BY id ASC WHERE id ='.$n;
where $n is a number it will return the row that id = number but my table is something like this:
id | label
1 | sometext
4 | sometext
33 | sometext
40 | sometext
..
i mean, if i want to get the 3-th row which is ( 33 | sometext ) the query wont work.
Is there a simple way to get the 3-th or 4-th row ?
Thanks.
will get you the third row