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"; ?> Quote Link to comment 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 Quote Link to comment 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? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.