use of date function

Questions about the MySQL, PostgreSQL, and most other databases, as well as using it with PHP can be asked here.

Moderator: General Moderators

Post Reply
mani.25j
Forum Newbie
Posts: 1
Joined: Mon Jan 11, 2010 10:14 pm

use of date function

Post by mani.25j »

to display the some data which having status =1
on the front page and get disable after 15 days from the date of inserting data
source code???
Last edited by mani.25j on Mon Jan 11, 2010 11:35 pm, edited 1 time in total.
pbs
Forum Contributor
Posts: 230
Joined: Fri Nov 07, 2008 5:31 am
Location: Nashik, India
Contact:

Re: use of date function

Post by pbs »

You can get date difference between inserted date and current date, if difference is 15 days then you can change the status which will disable the data on front page
Post Reply