Hi,
I am not sure what I am doing wrong.But could you please have a look on my query
I am passing parameters through query string but it doesn't generate chart.
But if hardcode the same values as below $from and $to it generates the chart.There is no problem with pid field.It picks it properly.
$pid=$GET["pid"];
$from=$GET['from'];
$to=$_GET['to'];
#$pid=20;
#$from='2006-12-04';
#$to='2010-04-19';
echo $pid;
echo $from;
echo $to;
// Fetch all factory records
$strQuery = "select rid,meter_dtg from readings where pid=$pid and meter_dtg >= '$from' and meter_dtg <= '$to';";
I also tried
#$strQuery = "select rid,meter_dtg from readings where pid='".$pid ."' and meter_dtg >= '".$from."' and meter_dtg <= '".$to."';";
this is how I call this page
$strDataURL = "glucose.php?pid=$pid&from='$from'&to='$to'";
#echo "Patient Details";// for testing
//Create the chart - Pie 3D Ch$strDataURL = "glucose.php?pid=$pid&from='$from'&to='$to'";art with dataURL as strDataURL
echo renderChart("FCF_Line.swf", $strDataURL, "", "FactorySum", 650, 450);
Just for testing I called same page with href and I could see the values are passed to glucose.php properly.
Could you please let me know what is going wrong.
Thanks,
Bilal