Jump to content

Embedding dynamic php content in javascipt


dotkpay

Recommended Posts

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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.