Jump to content

[SOLVED] Variables in HTML question


nonexistence

Recommended Posts

I am very new to PHP, so be gentle!

 

So, I've been trying to figure out a way to make this work and I can not find it out. Is this possible to do?

 

All help is appreciated in advance.

 

 

<?

$month=date('M');

$day=date('d');

echo "<span class=\"postdate\">$month <em>$date</em></span>";

?>

Link to comment
https://forums.phpfreaks.com/topic/171864-solved-variables-in-html-question/
Share on other sites

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.