why does $visitdate = date(d/m/Y h:i:s A O); results in an unexpected T_STRING error?
![]() |
why does $visitdate = date(d/m/Y h:i:s A O); results in an unexpected T_STRING error?
Try this:
You need to pass in a string as the date functions parameter, so add some quotes around what you are passing in to make it a string.Code:$visitdate = date('d/m/Y h:i:s A O');
For more on this function please refer to PHP: date - Manual
All times are GMT -7. The time now is 07:54 PM. |