Jump to content

sudeeppgm

Members
  • Posts

    3
  • Joined

  • Last visited

sudeeppgm's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. i want create a download link...read and display document name from data base.at the clicking time of document name.download .doc file.
  2. <?php //Convert to date $datestr="2013-02-06 19:10:18";//Your date $date=strtotime($datestr);//Converted to a PHP date (a second count) //Calculate difference $diff=$date-time();//time returns current time in seconds $days=floor($diff/(60*60*24));//seconds/minute*minutes/hour*hours/day); $hours=round(($diff-$days*60*60*24)/(60*60)); //Report echo "$days days $hours hours remain<br />";echo "<br>"; ?>
×
×
  • 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.