I have a day, month and year in php variables. How can I use them in a SQL INSERT statement, knowing that the field I want to insert that date is of the date type.
Thanks.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Just format the date as a string and pass it to the SQL query
where you can replace the $year, $month and $day variables with your desired input.