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));
更新の場合に正しくない「and」なしで試してください。
$st = $this->db->prepare("update users set ipaddress=?, lastlogin=? where email=?");
ここを参照してください:http://dev.mysql.com/doc/refman/5.1/en/update.html
それ以外に、mysql時間関数(CURDATE()など)を使用して結果を得ることができます:https ://dev.mysql.com/doc/refman/5.5/en/date-and-time-functions.html# function_curdate