Lines Matching refs:conn
12 $conn = pg_connect($conn_str);
16 pg_query($conn, "CREATE TABLE $table (id INT, value FLOAT)");
18 pg_insert($conn,$table, array('id' => 1, 'value' => 1.2));
19 pg_insert($conn,$table, array('id' => 2, 'value' => 10));
20 pg_insert($conn,$table, array('id' => 3, 'value' => 15));
22 var_dump(pg_update($conn,$table, array('value' => 'inf'), array('id' => 1), PGSQL_DML_STRING));
24 pg_update($conn,$table, array('value' => 'inf'), array('id' => 1));
25 pg_update($conn,$table, array('value' => '-inf'), array('id' => 2));
26 pg_update($conn,$table, array('value' => '+inf'), array('id' => 3));
28 $rs = pg_query($conn, "SELECT * FROM $table");
38 $conn = pg_connect($conn_str);
41 pg_query($conn, "DROP TABLE IF EXISTS $table");