hi
Im just curious, im developing a web site for a client the content of
which is vehicles the database has a number of different methods to search
by, but as soon as you get to a singular vehicle you can browse to the next
/ previous vehicle in the database. To do this i use offsets.
My question is when i have a page that simply has a list of vehicles,
say the last 5 added for example, the url has to contain the offset value
for that vehicle. So far the only way i can determine to work out the
position of the vehicle in the recordset is to run a search through the
entire table, counting each entry, then once it hits the entry im after it
records the count (hence the offset value i need). Ive set up a function to
determine this for me. My only concern is that once i start displaying the
list of vehicles, hence running the function every time i want to display a
vehicle link, will this place an intolerable load on the server?
Is their an easier way to get the records position in the table? that will
reduce load on the server?
Cheers - Ben.