i have simple php page with script where i fetch data from DB
$plot_row1 = array();
$plot_row2 = array();
$query1 = "SELECT date, name, value FROM list WHERE date between '$s_date' and '$e_date'
ORDER BY date";
$result = $mysqli->query($query1);
while ($row = $result->fetch_array(MYSQL_ASSOC))
{
$sum_list = $sum_list + $row['value'];
$plot_row1[] = $row['value'];
$plot_row2[] = $row['date'];
}
Then I would like to have jqplot chart where X axis consists of dates from $plot_row2[] and Y axis contains values from $plot_row2[]
I started with the following code and what I need is to somehow prepared the values (in PHP) in the appropriate way to be used as an input for the jqplot (instead of the question marks).
echo "<div id='loggerChart1' style='height:400px;width:400px;'>";
echo "<script class='code' type='text/javascript' language='javascript'>";
echo "$.jqplot('loggerChart1', [?????]);";
echo "</script>";
echo "</div>";
Thank you