bgbs Posted September 18, 2009 Share Posted September 18, 2009 This is a tough echo statement for me, and I don't know how to wrap <div></div> around it. Another words I dont know where it supposed to get inserted. I tried different ways and I get syntax errors and others. echo date("M j, y g:i a", strtotime($ad->date_submit)); Link to comment https://forums.phpfreaks.com/topic/174716-how-to-wrap-css-aroud-echo-statement/ Share on other sites More sharing options...
JonnoTheDev Posted September 18, 2009 Share Posted September 18, 2009 echo "<div>".date("M j, y g:i a", strtotime($ad->date_submit))."</div>"; Link to comment https://forums.phpfreaks.com/topic/174716-how-to-wrap-css-aroud-echo-statement/#findComment-920758 Share on other sites More sharing options...
irkevin Posted September 18, 2009 Share Posted September 18, 2009 Try <?php echo "<div>".date("M j, y g:i a", strtotime($ad->date_submit))."</div>"; ?> Link to comment https://forums.phpfreaks.com/topic/174716-how-to-wrap-css-aroud-echo-statement/#findComment-920759 Share on other sites More sharing options...
irkevin Posted September 18, 2009 Share Posted September 18, 2009 Oops, sorry neil.johnson .. You were fastert than me XD Link to comment https://forums.phpfreaks.com/topic/174716-how-to-wrap-css-aroud-echo-statement/#findComment-920761 Share on other sites More sharing options...
bgbs Posted September 18, 2009 Author Share Posted September 18, 2009 wow that was fast, amazing. That worked Link to comment https://forums.phpfreaks.com/topic/174716-how-to-wrap-css-aroud-echo-statement/#findComment-920765 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.