php - header redirect with include file -


i've looked around on here , couldn't locate solution little problem.

i have following if statment

if($page==1) {     $sql = "update page set page='1' id=1";           include 'month.php';           header("refresh: 10; url=http://xxxxx.co.uk/?p=2");                } 

which updates database according page on , includes current month calendar file , hoped redirect page number 2 similar loads calendar , sql adds +2 database.

in essence it's loop i've made , reads sql database see page needs load next< know there's better ways create loop (just scroll through 3 php pages) i'm not great @ php..

so i'm wondering really, me have include statement along header refresh?

like said purpose pages rolls loop, i've managed work iframe (instead of header) takes few seconds longer frame window load.

@mario that's perfect - echoed following:

if($page==1) {     $sql = "update page set page='1' id=1";     echo '<meta http-equiv="refresh" content="5;url= http://xxxxx.co.uk/?p=2"/>';     include 'month.php';     } 

which loads loop flawlessly - i've been night trying working. thank much

can push page transitions wonder? such 'push out' or 'scroll out' ?


Comments

Popular posts from this blog

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -

ubuntu - Selenium Node Not Connecting to Hub, Not Opening Port -