Ok, this:
Code:
var now_date = Sel1_Date + "-" + Sel2_Date; //put the date in an input value
Just displays something like today: it's 6-13, ahh friday the 13th!!!
Now, try changing:
PHP Code:
$Check_Days = (mktime(0,0,0,$Sel2_Month,$Sel2_Day,$Sel2_Year)) - (mktime(0,0,0,$Sel1_Month,$Sel1_Day,$Sel1_Year));
To this:
PHP Code:
$Check_Days = mktime(0,0,0,$Sel2_Month,$Sel2_Day,$Sel2_Year);
$Check_Days = $Check_Days - (mktime(0,0,0,$Sel1_Month,$Sel1_Day,$Sel1_Year));
If that doesn't work, try this:
PHP Code:
$Check_Days = mktime(0,0,0,$Sel2_Month,$Sel2_Day,$Sel2_Year);
$Check_Days -=(mktime(0,0,0,$Sel1_Month,$Sel1_Day,$Sel1_Year));
If that doesn't work, than it's a problem with the mktime witch I know nothing about.
Bookmarks