| Hello
You had forgotten echo or print command for date
Please use
<html><body><p>The time is <?php echo date("g:i a", time()) ; ?>.</p></body></html>
you can do like follow commands(dont forget ; after any coomand too)
<? $var=date("g:i a", time()) ; echo $var; ?>
<?=date("g:i a", time()) ;?>
<?= means echo(print too)
you can use date("g:i a") instead of date("g:i a", time()) ; too.
visit this link for date:
http://php.net/manual/en/function.date.php
and for print:
http://php.net/manual/en/function.echo.php
Have a good times |