i need to count how many user that update their profile n how many user not update their profile within 5 years. and if the user not update their profile then i need send an email as alert notification.
aerliana
0
Newbie Poster
Recommended Answers
Jump to Posta database column for timestamp of the last update, filled on update with sql now()
select from table * where lastupdate < (now()-(5*365*24*60*60));
5*365*24*60*60 = 157680000 ~ 5 years of seconds
Jump to Postyou require information about the time of the update
you put a column in the database, that autopopulates the lastupdate column with
now(), which is an sql construct that does what it looks like it does,
if the data management system is one developed by someone else as a saleable …
All 7 Replies
almostbob
866
Retired: passive income ROCKS
aerliana
0
Newbie Poster
almostbob
866
Retired: passive income ROCKS
aerliana
0
Newbie Poster
aerliana
0
Newbie Poster
Graphix
68
---
almostbob
866
Retired: passive income ROCKS
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.