DATE Function in PHP - ADD DAYS
By using this function you can easily Add days into date and as well as subtract days from date.
//Example
$date = "2008-11-10";
$fdate = adddays($date,5);
echo fdate; //result : 2008-11-15
$date = "2008-11-10";
$fdate = adddays($date,-5);
echo fdate; //result : 2008-11-05
function adddays($date,$days){
$rs = $this->execute("select DATE_FORMAT(DATE_ADD('$date',INTERVAL $days DAY),'%Y-%m-%d') as newdate");
if($row = $this->row($rs)){
return $row["newdate"];
}else{
return "0000-00-00";
}
}
?>
70+ Creative Font Typography Designs
-
*Font typographic* designs is now more popular and we can notice a surge
for fonts Type work on portfolio sites, Here we have collected* 70+
Creative Fon...
13 years ago
No comments:
Post a Comment