If $x is larger than "33" the $date variable always returns "1969-12-31" , why is this?
//Example Change the variable to any number less than 34 and it works
//Change the $x variable to any number more than 34 and always returns "1969-12-31"
$x=35;
//Returns some unix date stamp I think
$calculate= mktime(0,0,0, date('m') ,date('d'), date('Y')-$x);
//Returns variable in date(8) data type format to be used in SQL query
echo $date = date('Y-m-d', $calculate);