nonexistence Posted August 25, 2009 Share Posted August 25, 2009 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 More sharing options...
Alex Posted August 25, 2009 Share Posted August 25, 2009 I see nothing wrong except that you're using $date in the string but you set $day, not $date. Link to comment https://forums.phpfreaks.com/topic/171864-solved-variables-in-html-question/#findComment-906223 Share on other sites More sharing options...
nonexistence Posted August 25, 2009 Author Share Posted August 25, 2009 wow, thanks... im going to put my special olympian helmet on and try not to hurt myself. That was the fix... lol Appreciate the time. Link to comment https://forums.phpfreaks.com/topic/171864-solved-variables-in-html-question/#findComment-906224 Share on other sites More sharing options...
Alex Posted August 25, 2009 Share Posted August 25, 2009 Np, just remember to press the "topic solved" button on the bottom left. Link to comment https://forums.phpfreaks.com/topic/171864-solved-variables-in-html-question/#findComment-906225 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.