Lines Matching refs:result
20 $result = pg_prepare($db, "php_test", "SELECT * FROM ".$table_name." WHERE num > \$1;");
21 pg_result_error($result);
22 pg_free_result($result);
23 $result = pg_execute($db, "php_test", array(100));
24 if (!($rows = pg_num_rows($result)))
30 pg_fetch_array($result, $i, PGSQL_NUM);
34 pg_fetch_object($result);
38 pg_fetch_row($result, $i);
42 pg_fetch_result($result, $i, 0);
45 pg_result_error($result);
48 pg_field_name($result, 0);
49 pg_field_num($result, "num");
50 pg_field_size($result, 0);
51 pg_field_type($result, 0);
52 pg_field_prtlen($result, null, 0);
53 pg_field_is_null($result, null, 0);
55 $result = pg_prepare($db, "php_test2", "INSERT INTO ".$table_name." VALUES (\$1, \$2);");
56 pg_result_error($result);
57 pg_free_result($result);
58 $result = pg_execute($db, "php_test2", array(9999, "A'BC"));
59 pg_last_oid($result);
61 pg_free_result($result);