Dear Ray,
I have reverted to the code [php]<?php echo (date("Y-m-d h:m:s")); ?>[php] and i'm still getting this error: "Incorrect datetime value: '[php]2011-07-22 10:07:30[php]' for column 'login_date' at row 1".
The date is correct but it doesn't want to be registered in the database.
I have included a compressed file of the user_LogIn.php page for you to have a look at it.
Currently the in the column login_date, type datetime of the database there are dates stored from the previous version of the web site, shall I flush them away?
I'm testing the site on my local server in the Sydney time zone (Apache, PHP5.2.3, SQL) while the web host is located in the US via Perth in Australia. It may be possible that the incorrect datetime issue has to do with different time zones and daylight saving?
Thanks again for your assistance.
Alfredo from Oz