Jump to content

how can i get all records from a db where there date field is one year ago


deansaddigh

Recommended Posts

How can i do the following code please if possible?

	//Automatically archive booking after one year of NOW()
$archivequery = "SELECT * FROM bookings WHERE date  is 1 year less than current date"
£queryresult =mysql_query($archivequery)

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.