+ 1

Calculated registeration of date

How to make chat age in datadase, use registeration user date. the chat age start from chat age 0 till 200.  the chat age up every weeks.. please help me guys..

15th Jan 2018, 6:32 PM
Weet Bokarachai
Weet Bokarachai - avatar
3 odpowiedzi
0
In your MySQL database you can set the default value to a current timestamp, then every item/message submitted will have a "time posted" stamp. in yiur php file yiu can then declare to remove old posts (with var(today-2weeksfromnow) or you can decide to only display messages upto that point.
29th Jan 2018, 5:54 AM
Jean-louis du Plessis
Jean-louis du Plessis - avatar
0
can you help me. give the code?
29th Jan 2018, 7:54 AM
Weet Bokarachai
Weet Bokarachai - avatar
0
can you help me. give the code?
29th Jan 2018, 7:55 AM
Weet Bokarachai
Weet Bokarachai - avatar