hi there trying to create a very simple date counter script here.
I just cant recall how to do all this.
There is a span of days starting at oct 30th, 2013 and I want to get todays date and then determine how many days have passed.
Am I even on the right track here? Any help would be mmuch appreciated!
my feeble attempt is below:
<?php
$elvenportal = mktime(0,0,0,10,30,2011);
$now = mktime(date("H"),date("i"),date("s"),date("n"),date("j"),date("Y"));
$theeday = date("d")-1;
$late = date("H");
if ($late < 7) {$now = mktime(0,0,0,date("n"),$theeday,date("Y"));};
if ($_POST["dayz"] != "" ){
if ($_POST["month"] != "" ){
if ($_POST["year"] != "" ){
$now = mktime(0,0,0,$_POST["month"],$_POST["dayz"],$_POST["year"]);
};};};
$offset = $now - $elvenportal;
print $offset;
?>