I want to download data displayed after search query.
require 'conn/Session.php';
require 'conn/MySQL.php';
require_once("includes/paging.inc.php");
require_once("classes/class.SiteManager.php");
$dbcon = new MySQL();
$siteObj = new SiteManager();
require 'conn/checkSession.php';
$paging = new Pager;
$id = $_POST['id'];
$from=$_REQUEST['$s'];
$to=$_REQUEST['$v'];
$result = mysql_query('SELECT * FROM `reports` WHERE date BETWEEN "$from" and "$to"' );
echo $result;
die();
Here I'm not able to get value of $from
and $to
, where $v
and $s
are input fields for dates at search query
require 'conn/Session.php';
require 'conn/MySQL.php';
require_once("includes/paging.inc.php");
require_once("classes/class.SiteManager.php");
$dbcon = new MySQL();
$siteObj = new SiteManager();
require 'conn/checkSession.php';
$paging = new Pager;
$id = $_POST['id'];
$from=$_GET['s']; // $_POST['s']
$to=$_GET['v']; // $_POST['v']
$result = mysql_query("SELECT * FROM reports WHERE date BETWEEN $from and $to");
echo $result;
die();
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.