<?php
$day1 = "2008/10/20";
//add month
$day2 = date("Y/m/d", strtotime("+2 months", strtotime($day1)));
//"2008/12/20"
$day2 = date("Y/m/d", strtotime("+3 months", strtotime($day1)));
//"2009/01/20"
//add days
$day2 = date("Y/m/d", strtotime("+5 days", strtotime($day1))); //"2008/10/25"
$day2 = date("Y/m/d", strtotime("+20 days", strtotime($day1))); //"2008/11/09"
//years
$day2 = date("Y/m/d", strtotime("+2 years", strtotime($day1))); //"2010/10/20"
?>
Also we can add weeks.
Thursday, November 19, 2009
Thursday, October 29, 2009
Monday, July 20, 2009
Thursday, June 18, 2009
ajax link on no javascript problem - jquery
Problem:
I use jquery for developing ajax processes.
like $("#myLink").click / load...
if the browser javascript disabled, then the ajax link will not work and the user cant go through the pages in the website...
Solution: http://yensdesign.com/2009/06/safe-ajax-links-using-jquery/
I use jquery for developing ajax processes.
like $("#myLink").click / load...
if the browser javascript disabled, then the ajax link will not work and the user cant go through the pages in the website...
Solution: http://yensdesign.com/2009/06/safe-ajax-links-using-jquery/
Thursday, May 28, 2009
Monday, May 18, 2009
Saturday, May 16, 2009
Simple dropdown menu with jquery
Drop Down Menu with Jquery - with no ul - li
http://beski.wordpress.com/2009/05/15/jquery-simple-dropdown-menu/
http://beski.wordpress.com/2009/05/15/jquery-simple-dropdown-menu/
Wednesday, May 6, 2009
Hidden page problem in ajax - Jquery
Problem in accessing hidden / remote file directly when using ajax...
http://beski.wordpress.com/2009/05/06/hidden-file-problem-in-ajax/
http://beski.wordpress.com/2009/05/06/hidden-file-problem-in-ajax/
Friday, April 24, 2009
Ajax Show More - JQuery PHP Mysql
Show more comments for a post using JQuery Ajax
http://beski.wordpress.com/2009/04/24/show-more-comments-ajax-jquery-php-mysql/
http://beski.wordpress.com/2009/04/24/show-more-comments-ajax-jquery-php-mysql/
Subscribe to:
Posts (Atom)