jeudi 20 octobre 2016

Run if statement only once

Just Wanted know the possibilities how to achieve it .I want to check a specific condition ,basically date and want to run that only once.If the URL is hit again on the same date it should not update database .

Here is my sample code

if(todaydate==givendate)
{

    //update database
}

please help!!!thanks

Aucun commentaire:

Enregistrer un commentaire