21simpleQuery(getDbAccess() , sprintf("select val from paramv, application WHERE paramv.appid=application.id and application.name='FDL' and paramv.name='%s'", $paramName) , $val, true, true);
22 $val = json_decode($val, true);
23 $val[$index] = $zone;
24simpleQuery(getDbAccess() , sprintf("update paramv set val='%s' from application where paramv.appid=application.id and application.name='FDL' and paramv.name='%s'", pg_escape_string(json_encode($val)) , $paramName));