ich hab folgende Tabelle:
Code:
CREATE TABLE `kp_activations` ( `user_id` int(11) NOT NULL default '0', `acctivationstring` varchar(32) collate latin1_general_ci NOT NULL default '', `verfallsdatum` timestamp NULL default NULL, PRIMARY KEY (`user_id`,`acctivationstring`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;
Code:
$table_name = DBPREFIX.'activations'; $vdate = strtotime("+1 day"); $fields_values = array( 'user_id' => $UID, 'acctivationstring' => $RNDSTRING->RNDString, 'verfallsdatum' => $vdate ); $res = $DB->autoExecute($table_name, $fields_values, DB_AUTOQUERY_INSERT);
Einen Kommentar schreiben: