studentofstone Posted January 5, 2011 Share Posted January 5, 2011 I am getting syntax error, unexpected T_CONSTANT_ENCAPSED_STRING on the date stamp line below but I can't see what is causing the problem. when I comment it out the problem goes away so I know I it is there. please help. $email_message = "Form details below.\n\n"; $email_message = date("m/d/Y")"\n"; Quote Link to comment Share on other sites More sharing options...
btherl Posted January 5, 2011 Share Posted January 5, 2011 $email_message = date("m/d/Y") . "\n"; Or $email_message = date("m/d/Y\n"); Quote Link to comment Share on other sites More sharing options...
desjardins2010 Posted January 5, 2011 Share Posted January 5, 2011 try date('H:m:s \m \i\s\ \m\o\n\t\h'); Quote Link to comment Share on other sites More sharing options...
studentofstone Posted January 6, 2011 Author Share Posted January 6, 2011 yes thank you btherl. Well done! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.