Refreshing element in web page

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>

It can be difficult to perform live communications with your PHP code from the web page.
You can make your life a lot easier by using a clock that is known to work well, such as from http://timeanddate.com/clocks/free.html