Advanced Charts / FREE amazing resource
Posted: 2020-05-14 04:10
Hello folks, here is a free, amazing & beautiful integration for your apps:
http://amcharts.com/demos/
click on a demo you like to see the code.
here is the ajax code to populate data from a db:

free photo hosting russia
http://amcharts.com/demos/
click on a demo you like to see the code.
here is the ajax code to populate data from a db:
Code: Select all
<?php
$currDir = dirname(__FILE__) . '/..';
include("$currDir/defaultLang.php");
include("$currDir/language.php");
include("$currDir/lib.php");
$con = mysqli_connect($dbServer, $dbUsername, $dbPassword);
mysqli_select_db($con,$dbDatabase);
$mi = getMemberInfo();
$ajax_var = makesafe($_REQUEST['ajax_var']);
$result = $con->query("select * from diary where user_name = '{$mi['username']}' and date_s = '{$ajax_var}'");
$data_table = array();
$outside = 0;
$inside = 0;
while ($row = $result->fetch_assoc()) {
unset($idx);
$idx = $row['date1'];
$idp = $row['amount'];
$originalDate = $idx;
$newDate = date("Y-m-d", strtotime($originalDate));
$data_to_be_inserted=array('date' => $newDate, 'value' => $idp);
array_push($data_table, $data_to_be_inserted);
$inside = $inside +1;
$outside = $outside +1;
}
$outside = $outside +1;
if($outside>$inside){
echo json_encode($data_table);
}
?>

free photo hosting russia