2013-02-16 178 views
-1

为什么mysql日期字段没有被更新?php日期到mysql日期

$st = $this->db->prepare("update users set ipaddress=? and 
lastlogin=? where  email=?"); 
$mysqldate = date('Y-m-d');       
$st->execute(array($ip_address, $mysqldate, $email)); 

回答