View Full Version : Date [Resolved]

08-21-2006, 10:25 PM
I am having am recieving a simple PHP error. The error I am recieving is:

Parse error: syntax error, unexpected T_ECHO in /home/xtremeup/public_html/ipn.php on line 79 Here is my code at line 79:

$date = echo date('l, F jS, Y @ g:i:s A e'); If I'm correct, this should echo for example: Monday, January 1st, 2006 @ 12:00:00 AM EST. Any ideas? Thanks!

Edit: I have gotten this to work. All I did was put the variable in quotes... For example:

$date = "echo date('l, F jS, Y @ g:i:s A e')"; Thanks anyways!

08-22-2006, 02:52 PM
Don't use the echo function in the variable assignment

$date = date('l, F jS, Y @ g:i:s A e');