$hash = md5(microtime(true)); $fields_values = array( 'pid'=>$this->pid, 'tmstamp' => time(), 'crdate' => date('Ymd'), 'card_type_id' => $layoutID, 'mail_to' => $to, 'mail_from' => $from, 'ip' => $ip, 'message' => $message, 'hash' => $hash ); $res = $GLOBALS['TYPO3_DB']->exec_INSERTquery('user_sendcard_saved_cards' , $fields_values);