This topic is locked

Displaying the Current Date

3/24/2008 2:35:32 PM
PHPRunner General questions
T
tototoo author

I want to display the current date. I don't want to store it in the database, just display it. I can think of several ways to do this, but what is the recommended way using PHPRunner? Thanks.

Sergey Kornilov admin 3/24/2008

You can proceed to Visual Editor, place cursor where you like to insert the date and hit "Insert PHP code snippet" button on the toolbar.
The following code will do the job:

echo now();
M
mmponline 4/18/2008

I've tried this, but get a
Fatal error: Cannot redeclare date() in /usr/www/users/afrdse/afdsbiddb/include/Auctions_events.php on line 39
Any idea why?

J
Jane 4/21/2008

Stephan,
please post your event code here.