$sql = sprintf("select * from test where time Between '%s' and '%s'", ($_POST["stDate"]), ($_POST["edDate"]));