as a total noob - I'm having trouble inserting dates using php and myswl.
Basically, I want to have the current date and time auto inserted when a new record is added to my table.
I've formatted the date field (articledate) to TIMESTAMP (or should it be datetime...)
The following code is retrieved from another table so am just wondering how to alter the insert for the date...
$query = "insert into gadgets set articletitle = '".$mysqli->real_escape_string($_POST['articletitle'])."', articledescription = '".$mysqli->real_escape_string($_POST['articledescription'])."', articledate = '".$mysqli->real_escape_string($_POST['articledate'])."', myimages = '".$mysqli->real_escape_string($_POST['myimages'])."'";
Clear as mud?