...

View Full Version : Surfing,frames Page



darksecu
04-16-2012, 07:11 PM
i want to create a surfing page with 2 frames ..

first one containing the count down of 30 seconds or 60 seconds after which one mysql query is executed and another one which opens the webpage link specified in table ..

Thanks,
Rahul

Fou-Lu
04-16-2012, 07:53 PM
This can't be done in PHP. You need to use JS/AJAX to issue a timer event and communicate or reload a PHP when the time is complete.
The best PHP can do otherwise is push a meta refresh header:


header('Refresh:60;url=http://site.com/script.php');

darksecu
04-17-2012, 05:14 AM
i need something better cause i need to fetch the data from database.
i have created one page in which ads are displayed, when users click on any ad i want the page to be opened of 2 frame.

any other way to do it ? something like combining html and php ?
i m not sure how to open a website in frame of html ..

Fou-Lu
04-17-2012, 03:16 PM
i need something better cause i need to fetch the data from database.
i have created one page in which ads are displayed, when users click on any ad i want the page to be opened of 2 frame.

any other way to do it ? something like combining html and php ?
i m not sure how to open a website in frame of html ..


This can't be done in PHP. You need to use JS/AJAX to issue a timer event and communicate or reload a PHP when the time is complete.


Use AJAX.

darksecu
04-17-2012, 04:32 PM
Use AJAX.
thanks got it to work combing php,html,ajax and java ... :thumbsup:



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum