the location url contains some variables "url?variable1=value&variable2=value" before "curpage" so when the code is executed it replaces the variables with "url?curpage=value", which actually changes the actual location of the current page.
Database management grid with record edit, delete, add, search, filter and export to excel, database and table dropdown selection, pages navigation, field sort and search in page.