noalyss Version-9
test-tableau-postgres.php
Go to the documentation of this file.
1<?php
2
3include_once("../include/constant.php");
4include_once("lib/ac_common.php");
5require_once('lib/database.class.php');
6require_once ('class/dossier.class.php');
7require_once('lib/html_input.class.php');
8require_once ('lib/function_javascript.php');
9require_once 'class/noalyss_user.class.php';
11
13$cn=new Database();
14
15
16$id=$cn->get_value('insert into test_array(list_tag) values (\'{"1"}\') returning id');
17echo $id;
18
19$cn->exec_sql('update test_array set list_tag = array_append(list_tag,\'test\')');
20
21$cn->exec_sql('update test_array set list_tag = array_append(list_tag,$1) where id=$2',array('Nouveau , test',$id));
22
23$val=$cn->get_value ("select array_to_string(list_tag,'/#!/') from test_array where id=$1",array(8));
24
25var_dump($val);
26
27$val=explode('/#!/',$val);
28var_dump($val);
contains the class for connecting to Noalyss
load_all_script()
load all the javascript only one time
global $g_failed
global $cn
global $g_user
global $g_succeed