I want to add 30 days to mysql date row

后端 未结 4 959
故里飘歌
故里飘歌 2021-01-27 02:50

My Code.

    

        
4条回答
  •  [愿得一人]
    2021-01-27 03:09

    Here is the part you need to change

    $sql="INSERT INTO users (first_name, last_name, web, email, date)
    VALUES ('$Fname', '$Lname', '$web', '$email', '$date', NOW() + INTERVAL 30 DAY)";
    

提交回复
热议问题