Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> PHP
Author Message
hanscom
Hangin' Around



Joined: Oct 16, 2003
Posts: 36

PostPosted: Mon Sep 11, 2006 8:50 am Reply with quote

Hi,
In the block-Site_Info.php
Above the 'Welcome' sign I want to add the current date, f.i.: sept 11, 2006
I suppose that I have to insert a code after the lines:
$content .= "<img src=\"images/blocks/email-g.gif\" height=\"10\" width=\"14\"> "._BREAD.": <b>$oldpms</b><br />\n<hr>\n";
} else {

What code do I have to insert to get the date ?
$content = .......

Thanks in advance for your help.
Hans
 
View user's profile Send private message
kguske
Site Admin



Joined: Jun 04, 2004
Posts: 6437

PostPosted: Mon Sep 11, 2006 10:23 am Reply with quote

Code:
$content .= "<br/>".date("F j, Y")."<br/>";
You might need to remove one or both of the <br/> tags.

See http://us3.php.net/manual/en/function.date.php for more details on date formatting.

_________________
I search, therefore I exist...
Only registered users can see links on this board! Get registered or login!
 
View user's profile Send private message
hanscom







PostPosted: Mon Sep 11, 2006 10:29 am Reply with quote

Thanks again. That was what I was looking for.
And the link is also usefull.
Hans
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> PHP

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©