I'm selecting a date from three text fileds (name d,m,y) and passing those into
checkdate($_POST['m'],$_POST['d'],$_POST['y']) ;
to validate it.
If it is a valid date I then create a timestamp for that date, then try to insert that value into a field of type "timestamp(14)" named 'dateAdded"
$timestamp = mkdate(0,0,0,$_POST['m'],$_POST['d'],$_POST['y]');
$sql = "INSERT INTO movies (title, rating,dateAdded) VALUES ('".$_POST['title']."', '".$_POST['rating']."' ,".$timestamp.")";
$res = mysql_query($sql);