dotkpay Posted July 19, 2010 Share Posted July 19, 2010 Hello, How would I embed dynamic php content in javascript so that it can change accordingly without having to refresh the page? For example I have a php script that tells time <?php $hour = date(H); $min = date(i); echo $hour,":",$min; ?> Could you please add javascript to make it dynamic so that it can show real time, minute by minute without reloading the page. Thanks in advance. Link to comment https://forums.phpfreaks.com/topic/208231-embedding-dynamic-php-content-in-javascipt/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.