11Tami Posted April 15, 2007 Share Posted April 15, 2007 Hello, I need some php or advice to help me replace the first entry with the second. For instance with this it just adds the second one onto the first one. I need it to move the second position date into the first position. Any ideas? I tried several things but think I was moving in the wrong direction. Thanks <?php // Current time echo date('h:i:s') . "\n"; // wait for 2 seconds usleep(2000000); // back! echo date('h:i:s') . "\n"; ?> Link to comment https://forums.phpfreaks.com/topic/47082-need-something-to-replace-this/ Share on other sites More sharing options...
AndyB Posted April 15, 2007 Share Posted April 15, 2007 replace? As in replace the time value when displayed by the browser? Then you need javascript, not php Link to comment https://forums.phpfreaks.com/topic/47082-need-something-to-replace-this/#findComment-229629 Share on other sites More sharing options...
11Tami Posted April 16, 2007 Author Share Posted April 16, 2007 Why can't it replace the first entry when the page loads again to add the second? Link to comment https://forums.phpfreaks.com/topic/47082-need-something-to-replace-this/#findComment-230067 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.