php/Mysql query with inserting date fails

前端 未结 3 1562
情深已故
情深已故 2021-01-22 07:50

I have been searching for quite a while now and I can\'t figure out why my query isn\'t working for dates.

I want it to be imported to my database as a Date, this is a c

3条回答
  •  情深已故
    2021-01-22 08:22

    MySQL date format has to be YYYY-MM-DD

    Turn it around so it looks like:

    $_SESSION['Datum'] = $DateJaar.'-'.$DateMaand.'-'.$DateDag;
    

提交回复
热议问题