<?php

include 'tools.php';
$serieA = parseJSONfile("../data/serieB.json");
//var_dump($serieA->observations);
array2cvs($serieA->observations, '../data/serieB.csv', 'date', 'value');
Esempio n. 2
0
function update_write_($data, $bo_table, $wr_id, $db = G5_MYSQL_ROOT)
{
    global $g5;
    $write_table = $g5['write_prefix'] . $bo_table;
    $output = "update " . $write_table . " set ";
    $output .= array2cvs($data);
    $output .= " where wr_id = '{$wr_id}' ";
    @sql_query_($output, $db);
}