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)); Quote 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>"; Quote 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>"; ?> Quote 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 Quote 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 Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.