open chart1.php in a browser and post the string that it outputs here:
This is view source
<?php$con=mysql_connect("localhost","root","") or die("problemas al conectarse
al server!!!!"); mysql_select_db("rpms", $con); $chart_type =
$_POST['selectcharttype'];$sth = mysql_query("SELECT * FROM diabetes WHERE
Patient_ID ='123456789'");$rows = array();$flag = true;$table =
array();$table['cols'] = array( array('label' => 'Date_of_Measure', 'type'
=> 'date'), array('label' => 'BloodGlucose', 'type' => 'number'),);$rows
= array();while($r = mysql_fetch_assoc($sth)) { $temp = array();$temp[] =
array('v' => (string) $r['Date_of_Measure']); $temp[] = array('v' => (int)
$r['BloodGlucose']); $rows[] = array('c' => $temp);}$table['rows'] =
$rows;$jsonTable = json_encode($table);echo $jsonTable;mysql_close($db);?>
--
You received this message because you are subscribed to the Google Groups
"Google Visualization API" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at
http://groups.google.com/group/google-visualization-api?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.