如何在php中的一定时间(10秒)内自动显示nextpage?

TOM*_*TOM 5 php

我有大量的数据页面.我想在10秒内自动显示当前页面的下一页,现在我有2个链接用于下一页和后面.但我想自动显示它.如果页面计数到达最后一页,则它将显示第一页.

for ($counterstart=$startcounter ;
    $counterstart<=count($device)-1;$counterstart++){
    $entry = $device[$counterstart] ;     
    echo "page";    
}

if ($startcounter ==$result ){
    echo " Back ";
}else{
   echo "Next";
}           
Run Code Online (Sandbox Code Playgroud)

Ram*_*pta 2

您可以通过<meta>http-equiv 属性执行如下操作,使用时间和下一页 URL 来扩充内容

<head>
    <meta http-equiv="refresh" content="10;http://www.metatags.info/meta_http_equiv">
</head>
Run Code Online (Sandbox Code Playgroud)

参考 - http://www.metatags.info/meta_http_equiv

JSFiddle