J
James
I'm trying to embed simple PHP in HTML.
as follows:
<html>
<head>
<title>PHP Test</title>
</head>
<body>
<html>
<head></head>
<body class="page_bg">
<?php echo <p>Hello World</p>
Today is: <? print(Date("l, F jS, Y")); ?>.
</body>
</html>
--- This doesn't work either--
<?php
$today = date("F j, Y");
PRINT "$today";
?>
The 'Hello World' and 'Today is:' display as expected, but the date part
does not display.
I have tried Echo in place of print, same problem. All examples I've found
are using the same syntax.
What am I missing?
Any suggestions appreciated.
as follows:
<html>
<head>
<title>PHP Test</title>
</head>
<body>
<html>
<head></head>
<body class="page_bg">
<?php echo <p>Hello World</p>
Today is: <? print(Date("l, F jS, Y")); ?>.
</body>
</html>
--- This doesn't work either--
<?php
$today = date("F j, Y");
PRINT "$today";
?>
The 'Hello World' and 'Today is:' display as expected, but the date part
does not display.
I have tried Echo in place of print, same problem. All examples I've found
are using the same syntax.
What am I missing?
Any suggestions appreciated.