How can I combine $fromdateyear $fromdatemonth and $fromdateday and the same thing with $todateyear $todatemonth and $todateday. I need the outcome to be in the format 0000-00-00 which is the year, month, day. This is to search between date1 and date 2. Here is my PHP code.
$username = $_REQUEST['username'];
$fromdateday = $_GET['fromdateday'];
$fromdatemonth = $_GET['fromdatemonth'];
$fromdateyear = $_GET['fromdateyear'];
$todateday = $_GET['todateday'];
$todatemonth = $_GET['todatemonth'];
$todateyear = $_GET['todateyear'];
$date1 = "$fromdateyear-$fromdatemonth-$fromdateday";
$date2 = "$todateyear-$todatemonth-$todateday";
I know that Date 1 and Date 2 variable above is not going to work. The "-" is a dash and not an operator.
Bravo to JR! It works!!!
$username = $_REQUEST['username'];
$fromdateday = $_GET['fromdateday'];
$fromdatemonth = $_GET['fromdatemonth'];
$fromdateyear = $_GET['fromdateyear'];
$todateday = $_GET['todateday'];
$todatemonth = $_GET['todatemonth'];
$todateyear = $_GET['todateyear'];
$date1 = "$fromdateyear-$fromdatemonth-$fromdateday";
$date2 = "$todateyear-$todatemonth-$todateday";
I know that Date 1 and Date 2 variable above is not going to work. The "-" is a dash and not an operator.
Bravo to JR! It works!!!