I have numbers of pages with data . I want to show that next page of current page automatically in 10 sec and now i have 2 link for next and back. But i want to show it automatically. If the page count comes to last page then it will show the first page.
for ($counterstart=$startcounter ;
$counterstart<=count($device)-1;$counterstart++){
$entry = $device[$counterstart] ;
echo "page";
}
if ($startcounter ==$result ){
echo " Back ";
}else{
echo "Next";
}