But this won't work if next id isn't available. suppose for last id which is been viewed. :(
Even if next id item is deleted or so.
i hope you can provide me code for this:-----> 2. if you are wanting to loop from the last record to the first, without coming to the end, you will also need to compare the number of rows in the recordset, ($totalRows_WADAartworks). if this value = $_GET parameter, then your link should point to id number one.
(same logic, in reverse if you want to go from first record to the last, ie if $_GET parameter -1 = 0 then your link should point to id number $totalRows_WADAartworks.