On a web page, I need a paragraph to refresh every second. I’m learning JavaScript and will eventually learn AJAX, but I want to add this feature in my site right away. Could someone please help me with the code? Thanks a lot!
Here’s the code - the PHP just generates the current date.
<p id="time"><?php echo date("l, F j, Y g:i:sa");// This PHP generates the current time... ?></p>