noalyss
Version-9
html
test-tableau-postgres.php
Go to the documentation of this file.
1
<?php
2
3
include_once(
"../include/constant.php"
);
4
include_once(
"lib/ac_common.php"
);
5
require_once(
'lib/database.class.php'
);
6
require_once (
'class/dossier.class.php'
);
7
require_once(
'lib/html_input.class.php'
);
8
require_once (
'lib/function_javascript.php'
);
9
require_once
'class/user.class.php'
;
10
load_all_script
();
11
12
global
$cn
,
$g_user
,
$g_succeed
,
$g_failed
;
13
$cn
=
new
Database
();
14
15
16
$id
=
$cn
->get_value(
'insert into test_array(list_tag) values (\'{"1"}\') returning id'
);
17
echo
$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
25
var_dump(
$val
);
26
27
$val
=explode(
'/#!/'
,
$val
);
28
var_dump(
$val
);
$g_succeed
global $g_succeed
Definition:
test-tableau-postgres.php:12
$g_user
global $g_user
Definition:
test-tableau-postgres.php:12
$id
$id
Definition:
test-tableau-postgres.php:16
$val
$val
Definition:
test-tableau-postgres.php:23
$cn
global $cn
Definition:
test-tableau-postgres.php:12
Database
contains the class for connecting to Noalyss
Definition:
database.class.php:32
load_all_script
load_all_script()
load all the javascript only one time
Definition:
function_javascript.php:2752
$g_failed
global $g_failed
Definition:
test-tableau-postgres.php:12