Forum Moderators: coopster
The PHP [php.net] manual just says that mktime() [php.net] returns a UNIX timestamp, i.e. the seconds since 1970-01-01. It is still a PHP [php.net] function and implemented in all PHP [php.net] versions for all OSs.
Andreas
<?
$UserName = ""; # User Name
$DBpassword = ""; # Password
$DBName = ""; # Name of the database
$DataSource = ""; # Name of the DSN
$Table = ""; # Name of the table$datestamp = mktime(0,0,0,$Month,$Date,$Year);
$DOB = getdate($datestamp);
$conn = odbc_connect("DSN=$DataSource;UID=$UserName;PWD=''","","");
If ($conn) {
$add = odbc_exec($conn , "
INSERT INTO $Table
(First_Name,
Last_Name,
Password,
DOB,
City,
State,
Country,)
VALUES
('$Fname',
'$Lname',
'$Password',
'$DOB',
'$City',
'$State',
'$Country',)
"
);
If ($add) {
echo "Sucess. Form uploaded to the database.";
odbc_close($conn);
}
Else
echo "The odbc_connect succeeded but the upload to the database failed." ;
}
Else
echo "Failure. The odbc_connect failed.";
?>
Thank You
Andreas