you are using a non standard way of creating the site that is causing the issue.
you will need to recode the logic for the next, previous and last links to fit the URL rewriting scheme you are using.
for example, the code for the next link looks like this:
<a href="<?php printf("%s?pageNum_WADAretailchart=%d%s", $currentPage, min($totalPages_WADAretailchart, $pageNum_WADAretailchart + 1), $queryString_WADAretailchart); ?>" title="Next">
which is generating the following link:
index.php?pageNum_WADAretailchart=2&totalRows_WADAretailchart=1193&S_Brand=&S_RazorNumber=&S_Style=&S_OEMNumbers=&S_Length=&Search.x=53&Search.y=14&Search=Search
to work with your rewriting scheme, the link needs to be:
pageNum_WADAretailchart=2&totalRows_WADAretailchart=1193&S_Brand=&S_RazorNumber=&S_Style=&S_OEMNumbers=&S_Length=&Search.x=53&Search.y=14&Search=Search#!/page_more26
so the link code would need to be:
<a href="<?php printf("?pageNum_WADAretailchart=%d%s", min($totalPages_WADAretailchart, $pageNum_WADAretailchart + 1), $queryString_WADAretailchart); ?>#!/page_more26" title="Next">
it looks like your system wants to have the querystring variables first, followed the code to load the certain part of the page
so for the detail page links, change:
<a href="#!/page_more27?RazorNumber=<?php echo(rawurlencode($row_WADAretailchart['RazorNumber'])); ?>" >
to:
<a href="?RazorNumber=<?php echo(rawurlencode($row_WADAretailchart['RazorNumber'])); ?>#!/page_more27" >
the error message you are seeing is caused by having the recordset and Data Assist search code inside the body of the page, this code needs to be before the doctype tag. having it inside the body of the page is causing the headers already sent error message.