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";
}
You can do via <meta>
http-equiv Attribute as below augment content with time and next page URL
<head>
<meta http-equiv="refresh" content="10;http://www.metatags.info/meta_http_equiv">
</head>
Reference - http://www.metatags.info/meta_http_equiv
JSFifddle
You can't do this on the server side*. Use JavaScript: timeouts and Ajax in the Webpage to pull new content.
Searching for these Keywords will take you to a tons of examples and tutorials each.
(*) or at least it is very complicated
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With