i am not new to php but facing a problem of very basic level but dont know how to overcome it. i have a table for comments in which fields are name ,email, comment, date and time. now what i want to do is to insert system date and time in their respective fields but it only enters time not date. the types of field date is date and of time is time. here is my query
$insert = 'insert into tbl_comment
(name, email, desc, date, time)
VALUES
("'.$_POST['name'].'","'.$_POST['email'].'","'.$_POST['comment'].'"
,CURDATE(),"CURTIME()",CURTIME())';
mysql_query($insert);
}
plz help me out