zactanaz
04-27-2006, 11:19 PM
I have a table where id is unique, well am trying to select the next row available but is must be less than the one already selected, lets say ID = 11 and the row before is ID = 9 so im my query i put:
SELECT bla bla bla FROM bla bla bla WHERE ID < ID2
but it selects ID 1 not ID 9
So my question: Is there i what i can select the next row with ID 9 and not return ID 1 in MySQL or work a way to do it with PHP?
SELECT bla bla bla FROM bla bla bla WHERE ID < ID2
but it selects ID 1 not ID 9
So my question: Is there i what i can select the next row with ID 9 and not return ID 1 in MySQL or work a way to do it with PHP?