hey, i want to have some next - previous buttons on a web page. what i have so far is a little something that adds 1 for next and subtracts 1 for previous then looks at the database and selects the record that has the same id number... this is all fine and good, untill i delete a record. then i will get non sequental id numbers and i get blanks.
so i was wondering if anyone had any ideas about what i could do to skip over the records that arent there. so if i have 3 records which id's are 1,4,6 then i want to go directly from 1 to 4, not 1 then 2 then 3 then 4..
does anyone know what i am talking about?