Orders that prequalify and have finished the signup process.
if($startyr=="") { $begin="00000000000000"; }
else { $begin="$startyr$startm$startday"."000000"; }
if($endyr=="") { $end="20371231000000"; }
else { $end="$endyr$endm$endday"."000000"; }
include('../mysql.connect');
$query="select * from customer where contract = 'y' and complete != 'y' and timestamp between '$begin' and '$end'";
$id=mysql_query("$query");
?>