Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //$dados_user['data_cadastro'] vem do DB com o formato YYYY-MM-DD HH:II:SS
- $data_cadastro = strtotime($dados_user['data_cadastro']);
- $data_15dias = strtotime("+15 day", $data_cadastro);
- if($data_15dias < time()){
- $update = "ATUALIZA O EMAIL";
- }else{
- echo "Email só pode ser alterado 15 dias após o cadastro. ";
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement