This topic is locked

Question 1(writing time code)

8/23/2008 1:02:33 PM
PHPRunner General questions
J
janet author

pls is this the right way to write the time code in php runner
echo "Today is" & Now()

A
alang 8/24/2008

One way is:
echo "today is ".date("F j, Y");
now() is an SQL function. The "." character is used to combine strings in PHP. Google "PHP Date function" for more details on formatting of the date and time.