$data=array( 'ID'=> $user['ID'], 'LastTime'=> time(), 'LastIp'=> get_client_ip(), 'RegTime'=> time(), ); $db->save($data);