I've problem with inserting a date enter code hereinto a MySQL database. On my webpage i've got a input which type is 'date' but there is a problem with inserting value of this input into database properly.
$connection->query("INSERT INTO users VALUES(NULL, '$nick', '$password_hash', '$email',".$_POST['gender'].",".$_POST['bday'].")")
Have you got any solution for my problem?
date()function to change it.