Pavlos1316 Posted July 14, 2008 Share Posted July 14, 2008 Hi How do I get time and date, displayed in a table column? I use print date("F, dS Y"). "<br>"; but I get nothing. this is my table column: <div align="left"> <div align="center"> <table width="100%" border="0" align="center"> <tr> <th scope="col"><div align="center"> <div align="left"> <div align="center"> <pre><img src="playbutton.jpg" width="116" height="115" /></pre> </div> </div> </div></th> I want to remove img src and add date and time. Thank you Link to comment https://forums.phpfreaks.com/topic/114647-solved-time-and-date/ Share on other sites More sharing options...
JasonLewis Posted July 14, 2008 Share Posted July 14, 2008 <div align="left"> <div align="center"> <table width="100%" border="0" align="center"> <tr> <th scope="col"><div align="center"> <div align="left"> <div align="center"> <pre><?php echo date("F, dS Y"); ?></pre> </div> </div> </div></th> Make sure you save the page as a .php Good luck. Link to comment https://forums.phpfreaks.com/topic/114647-solved-time-and-date/#findComment-589517 Share on other sites More sharing options...
Pavlos1316 Posted July 15, 2008 Author Share Posted July 15, 2008 Thanks The reason I couldn;t do it was that my background is black and default color for date is black too Link to comment https://forums.phpfreaks.com/topic/114647-solved-time-and-date/#findComment-590296 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.