'http://'.$_SERVER['SERVER_NAME'].'/common/autocomplete/select_data.php?box_number=1';
echo
'http://'.$_SERVER['SERVER_NAME'].'/common/autocomplete/select_data.php?box_number=1';'http://'.$_SERVER['SERVER_NAME'].
$.getJSON('select_data_from_base.php?1&callback=?', function (data) {
Highcharts.chart('container', {
series:
[
{
type: 'line',
name: 'temp to press',
data: data
},
{
type: 'line',
name: 'temp to press1',
data: data1
}
]
});
});
script src="https://code.highcharts.com/highcharts.js"></script>
{
type: 'line,
name: 'new_line',
data: data
},
$.getJSON('select_data_from_base.php?1&callback=?', function (data) {
var data1,data2;
$.getJSON('select_data_from_base.php?1&callback=?', function (data1){});
$.getJSON('select_data_from_base.php?2&callback=?', function (data2){});
{
type: 'line1',
name: 'temp to press',
data: data1
},
<!-- Ура! у нас есть дата - data2 для построения второй линии-->
{
type: 'line2',
name: 'temp to press',
data: data2
},
<html>
<head>
<meta http-equiv=Content-Type content="text/html;charset=UTF-8">
<script src="https://code.jquery.com/jquery-3.1.1.min.js"></script>
<script src="https://code.highcharts.com/highcharts.js"></script>
<script src="https://code.highcharts.com/modules/exporting.js"></script>
</head>
<body>
<div id="container" style="min-width: 310px; height: 400px; margin: 0 auto"></div>
<script type="text/javascript">
$.getJSON('select_data_from_base.php?1&callback=?', function (data) {
Highcharts.chart('container', {
series:
[
{
type: 'line',
name: 'temp to press',
data: data
},
{
type: 'line',
name: 'temp to press1',
data: data1
}
]
});
});
</script>
</body>
</html>
([[Date.UTC(2013,5,2,1),1],[Date.UTC(2013,5,2,2),2],[Date.UTC(2013,5,2,3),1],[Date.UTC(2013,5,3,1),4],[Date.UTC(2013,5,3,6),2]])
series:
[
{
type: 'line1',
name: 'temp to press',
data: data1
},
{
type: 'line2',
name: 'temp to press',
data: data2
},
{
type: 'line3',
name: 'temp to press1',
data: data3
}
]
var data1,data2;
$.getJSON('select_data_from_base.php?1&callback=?', function (data1){});
$.getJSON('select_data_from_base.php?2&callback=?', function (data2){});
//Путь к корневой директории сайта
$path_to_root_dir='../';
//Подключение к БД
include ($path_to_root_dir.'mysql.php');
//Функции
include ($path_to_root_dir.'functions.php');
*/10 * * * * /usr/bin/php5 /var/www/4/script.php >/dev/null 2>&1
$code=["трололо", "1111"], ["пека", "222"];
//а может код [Date.UTC(2013,5,2),0.1],[Date.UTC(2013,5,3),0.2]; но где смотреть?
echo json_encode($code);
$new_array=$my_array;
А с стринг и инт работает, так что вопросов про них не будет.