bugfix: lastlogin wird nicht abgedatet (sql syntax)

git-svn-id: svn://svn.cccv.de/engel-system@33 29ba0400-6e00-0410-a75a-ca02368028f8
This commit is contained in:
cookie 2005-11-09 17:51:20 +00:00
parent 1dda1aefe9
commit 4a546f6d95
1 changed files with 1 additions and 1 deletions

View File

@ -24,7 +24,7 @@ include ("./inc/UserCVS.php");
if( isset($_SESSION['UID'])) if( isset($_SESSION['UID']))
{ {
$SQLlastLogIn = "UPDATE `User` SET ". $SQLlastLogIn = "UPDATE `User` SET ".
"`lastLogIn` = ". gmdate("YmjHis", time()). "`lastLogIn` = '". gmdate("Y-m-j H:i:s", time()). "'".
" WHERE `UID` = '". $_SESSION['UID']. "' LIMIT 1;"; " WHERE `UID` = '". $_SESSION['UID']. "' LIMIT 1;";
mysql_query ($SQLlastLogIn, $con); mysql_query ($SQLlastLogIn, $con);
} }